{layout name="public/layout" /}
{if $op == 'viewtuwen'}

<div class="main" style="margin: 0px 0;">
		{include file='yxnavbar'}
	<div class="panel panel-info">
		<div class="panel-body">
			
                <div class="form-group">
                    <div class="col-sm-12 col-xs-12">
                       {php echo view_ueditor('content', $log['tuwen']);}
                    </div>
                </div></div>
		
	</div>
</div>
{elseif $op == 'display'}
<div class="main" style="margin: 0px 0;">
		{include file='yxnavbar'}
    {if !empty($timetxt)}
		<div class="panel panel-info" style="border-color: #f32a2a;">
	        <div class="panel-heading" style="color:#ffffff;background: #f32a2a;border-color: #f32a2a;text-align: center;">{$timetxt}</div>
		</div>
	{elseif !empty($themetips)}
		<div class="panel panel-info" >
	        <div class="panel-heading" style="text-align: center;">{$themetips}</div>
		</div>
	{else}
		<div class="panel panel-info" >
			<div class="panel-heading">当前数量： {$total} {if $deltotal>0}<a href="{php echo createWebUrl('theme', array('op'=>'display','status'=>'-1'));}"  class="js-clip color-default" >【删除的活动：{$deltotal} 】</a>{/if}</div>
		</div>
    {/if}
	    <div class="pull-right">
	        {$pager}
	    </div>
<!-- 	<div class="panel panel-info">
		<div class="panel-heading">筛选</div>
		<div class="panel-body">
			<form action="./index.php" method="get" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="{$_P['m']}" />
				<input type="hidden" name="do" value="{$do}" />
				<input type="hidden" name="themeid" value="{$id}" />
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">关键字</label>
					<div class="col-sm-6 col-md-6 col-lg-6 col-xs-12">
						<input type="text" class="form-control" name="keyword" value="{$_P['keyword']}" />
					</div>
					<div class="pull-left col-xs-12 col-sm-3 col-md-2 col-lg-2">
						<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
						<input type="hidden" name="__token__" value="{$Request.token}"/>
					</div>
				</div>
			</form>
		</div>
	</div> -->
	<div class="main">
	    <table class="table bootstrap-table table-hover site-list">
	 {loop $list $row}

	        <tr>
	            <th colspan="2" class="text-left">活动名称 【
	            {if $system['ruanjian']==1}
	            	微团
	        	{elseif $system['ruanjian']==2}
	        		拼团2020
	        	{elseif $system['ruanjian']==3}
	        		异业联盟
	        	{elseif $system['ruanjian']==0 && $system['softstyle']==5}
	        		加盟
	        	{else}
	        		拼团2019
	        	{/if}】</th>
	            <th class="text-left" width="160px">网址</th>
	            <th class="text-left" {if DOMAIN0 == "30.yixuan.net"}width="160px"{/if}></th>
	            <th class="text-left" width="180px">数据【{$_P['m']}】</th>
	            <th class="text-left" ></th>
	            <th class="text-left" width="160px">操作</th>
	        </tr>
	       
	        <tr>
	            <td class="text-left vertical-middle" style="min-width: 120px">
	                <div class="site-item-img1">
	                    <img src="{php echo tomedia($row['headlogo']);}" width="100px" />
	                </div>
	            </td>
	            <td class="text-left" style="max-width: 260px"> 
	                <div class="bootstrap-margin-bottom" style="height: 40px;">
	                    <p class="color-gray">主标题</p> 
	                    <span class="color-dark">{$row['title']}</span>
	                </div>
	                {if $system['wxapp']==0 || $system['softmode']!=1 }
	                <div class="bootstrap-margin-bottom" style="height: 40px;">
	                    <p class="color-gray">副标题</p> 
	                    <span class="color-dark">{$row['desc']}</span>
	                </div>
	                {/if}
	                <div class="">
	                    <p class="color-gray">时间</p>
	                    <a href="javascript:;" class="color-dark" >开始：{php echo date("Y-m-d H:i:s", $row['begintime']);}

	                    <br>
	                        结束：{php echo date("Y-m-d H:i:s", $row['endtime']);}</a>
	                </div>
	            </td>
	            	{if $system['wxapp']==0 || $system['softmode']!=1}
	            <td class="text-left">
	                <div class="bootstrap-margin-bottom" style="position: relative; text-align: center;">
	                    <a href="javascript:;" class="js-clip color-default" data-url="{$row['indexurl']}"  >复制活动链接</a>
	                    <img style="width: 159px;" src="{php echo createWebUrl('qr',array('url'=>$row['indexurl']));}">
	                </div>
	            </td>
	                {/if}
	            	{if $system['wxapp']!=0 && $system['softmode']!=0}
	            <td class="text-left">
	                <div class="bootstrap-margin-bottom" style="position: relative; text-align: center;">
			            <a href="{$row['indexurlxcx']}" target="_blank" class="js-clip color-default" >活动二维码
	                    <img style="width: 159px;" src="{$row['indexurlxcx']}"></a>
	                </div>
	            </td>
	                {/if}
<!-- 	                <div class="">
	                   <p class="color-gray">活动状态</p>
	                   <input type="checkbox" name="status[]" data-id="{$row['id']}" value="{$row['status']}" class="hidden" {if intval($row['status'])==1} checked="checked" {/if}/>
	                </div> -->
	            {if  $system['softmode']!=2}
	            <td ></td>
	            {/if}
	            <td class="text-left">
	<p class="color-gray">参与人数：<span class="label label-primary">{$row['fanscount']}</span></p>
	<p class="color-gray">浏  览  量：  <span class="label label-success">{$row['scansum']}</span></p>
	<p class="color-gray">转  发  量：  <span class="label label-info">{$row['forward']}</span></p> 
	<p class="color-gray">付款人数：<span class="label label-warning">{$row['recordcount']}</span></p> 
	<p class="color-gray">付款金额：<span class="label label-info">{$row['ordercount']}元</span></p>
	{if $system['fenxiao']==1 || $row['commcount'] != 0}
	<p class="color-gray">红包发放：<span class="label label-danger">{$row['commcount']}元</span></p>
	{/if}

	{if $row['chongzhi']>0 }
	<p class="color-gray">充&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;值：&nbsp;<span class="label label-success">{$row['chongzhi']}元</span></p>
	{elseif ($row['chongzhi']<0) }
	<p class="color-gray">已  提  现：  <span class="label label-success">{$row['chongzhi']}元</span></p>
	{/if}
	<p class="color-gray">实际到帐：<span class="label label-success">{php echo sprintf("%.2f",$row['ordercount']*$shouxu+$row['commcount']+$row['chongzhi']);}元</span></p>  </td>

	            <td ></td>
	            <td class="text-left">
	            	{if $row['uniacid'] == $_G['mpid'] && $row['status'] != '-1'}
	                <div style="line-height: 25px;">
	                    <p class="color-gray">管理</p>
	                     <a href="{php echo createWebUrl('giftgroup',array('op' => 'giftgroup','themeid'=>$row['id']));}" class="color-default bootstrap-margin-right" rel="tooltip"><i class="fa fa-reorder"></i> 礼品设置</a><br>
	                     {if $system['lottery']==1}
	                     <a href="{php echo createWebUrl('clottery',array('op' => 'list','themeid'=>$row['id']));}" class="color-default bootstrap-margin-right" rel="tooltip" ><i class="fa fa-group"></i> 抽奖设置</a><br>
	                     {/if}
	                     {if $system['fenxiao']==1}
	                     <a href="{php echo createWebUrl('comm', array('themeid'=>$row['id'],'op'=>'dissplay'));}" class="color-default bootstrap-margin-right" rel="tooltip" ><i class="fa fa-group"></i> 分销管理</a><br>
	                     {/if}
	                     <a href="{php echo createWebUrl('worker', array('themeid'=>$row['id'],'op'=>'dissplay'));}" class="color-default bootstrap-margin-right" rel="tooltip" ><i class="fa fa-bar-chart"></i> 员工业绩</a><br>

						{if $_G['isSuperAdmin'] }
	                     <a href="{php echo createWebUrl('bill', array('themeid'=>$row['id']));}" class="color-default bootstrap-margin-right" rel="tooltip" ><i class="fa fa-money"></i> 充值/提现</a><br>
						{else}
	                     <a href="{php echo createWebUrl('bill', array('themeid'=>$row['id']));}" class="color-default bootstrap-margin-right" rel="tooltip" ><i class="fa fa-money"></i> 提现记录</a><br>
						{/if}
	                   
	                </div>
	                <div class="bootstrap-margin-bottom">
	                    <p class="color-gray">基础操作</p>
	                    <a class="btn btn-info btn-sm" style="font-size: 16px;font-weight:bold" 
							href="{php echo createWebUrl($do, array('op'=>'post','id'=>$row['id']));}"
							title="编辑设置"><i class="fa fa-edit"> 活动编辑</i></a>{if $_G['isSuperAdmin']}
							<!-- <a class="btn btn-warning btn-sm" href="#"
							   onclick="drop_confirm('确定要复制吗?','{php echo createWebUrl($do,array('op'=>'copy','id'=>$row['id']));}');"
							   title="复制活动"><i class="fa fa-copy"></i></a> -->
							
							{/if}
							{if $row['isautorefund']==1}
							<p class="color-gray"><span style="color: #5cc0de">特别提醒:已开通24小时不满团</span><span style="color: #d9534f">自动退款</span></p>
							{/if}
							{if empty($row['softsn'])}
							<p class="color-gray"><span style="color: #d9534f">软件未激活</span></p>
							{/if}
	                </div>
	                {elseif $row['status'] == '-1'}
	                <div class="bootstrap-margin-bottom">
	                	<a class="btn btn-info btn-sm" style="font-size: 16px;font-weight:bold" 
							href="{php echo createWebUrl($do, array('op'=>'renew','id'=>$row['id']));}"
							title="还原活动"><i class="fa fa-ren"> 还原</i></a>
						{if $_G['username']=='benben'}
	                	<a class="btn btn-warning btn-sm" style="font-size: 16px;font-weight:bold" 
							href="{php echo createWebUrl($do, array('op'=>'deleteben','id'=>$row['id']));}"
							title="删除"><i class="fa fa-ren"> 完全删除</i></a>
						{/if}
	                </div>
	                {elseif $_G['isSuperAdmin'] }
	                <p class="color-gray"><a href="/web/index.php?c=account&a=display&do=switch&uniacid={$row['uniacid']}&type=1&module={$_P['m']}">{$row['accountname']}</a></p>
	                {/if}
	            </td>
	        </tr>
	        {if $_G['isSuperAdmin'] }
	        <tr>
	        	<th colspan="7" class="text-right" style="color: #888888">{$row['keyword']}{if !empty($row['xiaoshou'])}销售：{$row['xiaoshou']}{/if} {if !empty($row['kefu'])} 客服：{$row['kefu']}{/if}</th>
	        </tr>
	        {if $row['banmian']==1}
		        <tr>
		        	<th colspan="7" class="text-center" style="background: #f67a7a;color: #fff">此设计版不可外发</th>
		        </tr>
	        {/if}
	        {/if}
	        <tr style="height: 30px;">
	        </tr>
	        {if $total==1}
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #d9534f">实际到帐:</span><span style="color: #5cc0de">付款金额-{$shouxu100}%的手续费{if $system['fenxiao']==1 || $row['commcount'] != 0}-红包发放{/if}</span> 手续费:凡是通过微信支付的腾讯公司均收取,非我公司收取,详见:<a href="http://t.cn/R4zALPm" target="_blank">http://t.cn/R4zALPm</a></th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #d9534f">重要提示:严禁对客户讲因平台收钱不可退,一旦遭客户投诉被微信惩罚,您的款项可能会被暂时或永久扣押.</span></th>
	        </tr>
	        {/if}
	{/loop}
	    </table>
	        {$pager}
	{if $total>1}
	    <table class="table bootstrap-table table-hover site-list">
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #d9534f">实际到帐:</span><span style="color: #5cc0de">付款金额-{$shouxu100}%的手续费{if $system['fenxiao']==1 || $row['commcount'] != 0}-红包发放{/if}</span> 手续费:凡是通过微信支付的腾讯公司均收取,非我公司收取,详见:<a href="http://t.cn/R4zALPm" target="_blank">http://t.cn/R4zALPm</a></th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #d9534f">重要提示:严禁对客户讲因平台收钱不可退,一旦遭客户投诉被微信惩罚,您的款项可能会被暂时或永久扣押.</span></th>
	        </tr>
	    </table>
	 {/if}
	{if $_G['isSuperAdmin']}
	{include file='log'}
    {/if}
	 {loop $list $row}
	 	{if $system['fenxiao']==1 || $row['commcount'] != 0}
	 		{php $colspan =9;}
	 	{else}
	 		{php $colspan =8;}
	 	{/if}
	 	{if $row['refundfee']>0}
	 		{php $colspan = $colspan+1;}
	 	{/if}
	    <table class="table bootstrap-table table-hover site-list">
	    	{if $total>1}
	        <tr><th colspan="{$colspan}" class="text-left panel-footer">{$row['title']}</th>
	        </tr>
	        {/if}
	        <tr>
	            <th class="text-left">日期</th>
	            <th class="text-center" >新粉丝</th>
	            <th class="text-center" >转发量</th>
	            <th class="text-center" >浏览量</th>
	            <th class="text-center" >付款人数</th>
	            <th class="text-center" >付款金额</th>
	            {if $system['fenxiao']==1 || $row['commcount'] != 0}
	            <th class="text-center" >红包发放</th>
	            {/if}
	            <th class="text-center" >线下</th>
	            {if $row['refundfee']>0}
	            <th class="text-center" >退款数/金额</th>
	            {/if}
	            <th class="text-center" >操作</th>
	        </tr>
	        {loop $row['report'] $item}	        
            {php $riqi1 = $item['riqi'] . " 00:00:00";}
            {php $riqi2 = $item['riqi'] . " 23:59:59";}
	        <tr>
	            <td class="text-left">{$item['riqi']}</td>
	            <td class="text-center" >{$item['newfans']}</td>
	            <td class="text-center" >{$item['forward']}</td>
	            <td class="text-center" >{$item['scansum']}</td>
	            <td class="text-center" ><a 
							href="{php echo createWebUrl('record', array('op'=>'display','themeid'=>$row['id'],'status'=>'1','createtime[start]'=>$riqi1,'createtime[end]'=>$riqi2));}"
							>{$item['record']}</a></td>
	            <td class="text-center" ><a 
							href="{php echo createWebUrl('order', array('op'=>'display','paystate'=>'1','themeid'=>$row['id'],'createtime[start]'=>$riqi1,'createtime[end]'=>$riqi2));}"
							>{$item['fee']}</a></td>
	            {if $system['fenxiao']==1 || $row['commcount'] != 0}
	            <td class="text-center" ><a 
							href="{php echo createWebUrl('comm', array('op'=>'display','status'=>'1','themeid'=>$row['id'],'createtime[start]'=>$riqi1,'createtime[end]'=>$riqi2));}"
							>{$item['comm']}</a></td>
	            {/if}
	            <td class="text-center" ><a 
							href="{php echo createWebUrl('comm', array('op'=>'display','status'=>'1','themeid'=>$row['id'],'createtime[start]'=>$riqi1,'createtime[end]'=>$riqi2));}"
							>{$item['recordxx']}</a></td>
	            {if $row['refundfee']>0}
	            <td class="text-center" ><a 
							href="{php echo createWebUrl('record', array('op'=>'display','themeid'=>$row['id'],'status'=>'-1'));}"
							>{$item['refund']}/{$item['refundfee']}</a></td>
	            {/if}
	            <td class="text-right" ><a class="btn btn-info btn-sm"  
							href="{php echo createWebUrl('record', array('op'=>'display','status'=>'1','themeid'=>$row['id'],'createtime[start]'=>$riqi1,'createtime[end]'=>$riqi2));}"
							><i class="fa fa-list">查看明细</i></a></td>
	        </tr>
	        {/loop}
	        <tr><td colspan="{$colspan}" class="text-center panel-footer">点击对应数字可查看对应明细</td>
	        </tr>
	    </table>
	{/loop}
	    <table class="table bootstrap-table table-hover site-list">
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">常用功能:</span>
	            	【增加虚人数】点击上方右侧->活动编辑->拉到最底部->修改参与人数/团/浏览量即可，或手机->虚拟数据</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">常用功能:</span>
	            	【导出数据】点击定单管理->选择想导出的条件(例如已支付的客户)->导出excel(如预到打开为乱码,请更换浏览器或电脑重试)</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f"><span style="color: #d9534f">手机修改虚拟数等</span>:</span>手机版可更活动常用设置以及活动虚拟数</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增修改定单:</span>客户填写的姓名电话以及其它表单均可以后台修改，员工，所属团也可修改，并形成修改日志</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f"><span style="color: #d9534f">手机版新增</span>:</span>团队日报，个人日报，数据统计，礼品统计，个人排名等多项功能</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增链接黑名单:</span>可限制同行等不想让其它看链接的打开我们活动链接</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f"><span style="color: #d9534f">全新的手机管理端上线</span>:</span>新增新粉丝概念，大屏投放，团队排名等所有功能进行重新改写</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增日报表功能:</span>系统自动统计活动每一天的，成交量，成交金额，红包发放，转发量以及每天的浏览量，通过走势给到领导层更好的决策，掌握活动的最新动向</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">选择套餐不同支付价格不同:</span>如婚纱照支付100元，写真照支付50元，儿童照支付50元，并且可以设置不同的分销红包</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de"><span style="color: #d9534f">裂变红包全面升级</span>:</span>手工发放，3小时成交量不够停发，3小时红包超过收入停发，地区限制新增GPS定位模式更加准确，大数据功能将已知刷红包的加入黑名单</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">弹幕开关:</span>点亮图标，分销红包，裂变红包，员工提成等弹幕可在后台其它设置，单独开关是否显示</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增<span style="color: #d9534f">虚拟红包排行榜</span>:</span>分销管理-红包排行榜-设置虚拟数，更快捷的让客户感受红包的魅力</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增翻牌游戏模式:</span>通过翻牌游戏让客户更多的参与感以及朋友圈裂变</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增邀请好友点亮图标:</span>邀请好友点亮图标，获得积分，再兑换对应的礼包，快速朋友圈裂变</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">优化二维码:</span>优化所有二维码及短网址,增加客户见证上的二维码开关,优化防封杀技术</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新软件:</span>
	            	<span style="color: #d9534f">【多商家异业联盟】</span>全新异业联盟模式,适合10家以上的多个异业模式,并且可以开三级分销</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增功能:</span>
	            	<span style="color: #d9534f">【虚拟成团】</span>客户没有组团成功,后台虚拟成团,功能:定单管理->虚拟成团</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增功能:</span>
	            	<span style="color: #d9534f">【2个拼团价】</span>比如3人团599元 5人团399元,如需使用联系客服即可</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增功能:</span>
	            	<span style="color: #d9534f">【个性化开关】</span>员工是否可查看团队排名,员工是否可支付,员工是否有分销红包,团队数量后台直接修改 </th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">优化裂变红包规则:</span>【新增规则】可限制客户要停留多久才可以参与,限制每小时的红包金额</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增功能:</span>
	            	<span style="color: #d9534f">【异业联盟+微团全面升级】</span>微团软件+异业联盟全面升级到最新版,拥有与拼多多软件一样的手机管理端以及电脑管理端,也同样可以拥有三级分销+摇一摇红包+员工提成</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增功能:</span>
	            	<span style="color: #d9534f">【摇一摇红包】</span>客户可以摇一摇获得红包,分享到朋友圈即可到帐,快速朋友圈裂变</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增功能:</span>
	            	<span style="color: #d9534f">【线下定单录入】</span>大多数活动都是线上线下一起进行,很多客户进店成交后,碰到微信没钱等情况,无法在线支付.无法支付则就无法线上拉人组团,也就起不到更好的裂变.为此新增录入功能, 只需输入姓名和电话即可,提交后生成二维码,截屏发给客户扫描一下即可完成操作 </th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增功能:</span>
	            	【手机版定单管理】实现手机全面的管理,拥有电脑版的所有功能,可根据需要快速点击查询,更好的服务好客户和追单</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增功能:</span>
	            	【手机版团的管理】各种表格统计团的信息,谁和谁是一个团的,此团差几人,是每一个销售最痛苦的事情,现在打开手机管理后台,左侧为团左,右侧为团员,此团已有几人,差几人,一目了然,高效快捷</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增功能:</span>
	            	<span style="color: #d9534f">晒单系统(全网首创)</span>传统的定单,可以晒红包,晒转帐,晒现金,现在所有定单转到线上后,没有了素材
现在的我们手机管理后台,每成交一个定单系统都会自动生成定单图,图片上还带有员工的专属二维码,扫码即可进入活动链接,成交就为自个的定单.除此之外系统还可以自动生成虚拟定单,快速增加朋友圈热度</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增功能:</span>
	            	【手机版数据统计分析】实现所有数据的实时统计,已支付,未支付今天多少累计多少非常明白,直销(全网首创)有多少卡是自己直接销售的.整个团队多少,每个团队多少,本团队的每个小伙伴分别多少,并且会统计出这个每个员工的转发量和阅读量.</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增功能:</span>
	            	<span style="color: #d9534f">【24小时团购失败自动退款】</span>默认为关闭,如需开启,请联系工作人员</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增功能:</span>
	            	【新增后台退款功能】定单管理->每个定单里最右侧图标,可用于拍错或退单使用,需联系工作人员进行授权</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">修正BUG:</span>
	            	【红包失败重发机制】当遇到余额不足等情况发送失败时,系统自动重试</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">新增功能:</span>
	            	【按类型查询】定单管理/分销管理/交易记录按类型查询并且统计每个类型多少个,更利于活动推广</th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #71d24f">新增功能:</span>
	            	【快速查询定单】在定单管理,点击团号可快速查本团信息,点员工可查本员工信息 </th>
	        </tr>
	        <tr>
	            <th colspan="7" class="text-left"><span style="color: #5cc0de">常用功能:</span>
	            	【员工业绩】菜单员工业绩,可快速查询员工名单以及转发量,阅读量,成交量等统计信息</th>
	        </tr>
	    </table>

	</div>

<!-- 	<form action="" method="post" onsubmit="return formcheck(this)" id="form-activity">
	<div class="panel panel-default">
		<div class="panel-body table-responsive">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width: 50px;">ID</th>
						<th>图标</th>
						<th>名称</th>
						<th>团长</th>
						<th>团员</th>
						<th>单买</th>
						<th>总计</th>
						<th>进账</th>
						<th>出账</th>
						<th>粉丝</th>
						<th>浏览</th>
						<th>转发</th>
						<th style="width: 200px; text-align: right;">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $row}
					<tr>
						<td class="text-center">{$row['id']}</td>
						<td><img src="{php echo tomedia($row['img']);}" width="28" style="border-radius: 3px;"></td>
						<td style="font-size: 12px;max-width: 120px;">{$row['title']}</td>
						<td><span class="label label-primary">{$row['gsum1']}</span></td>
						<td><span class="label label-success">{$row['gsum2']}</span></td>
						<td><span class="label label-info">{$row['gsum9']}</span></td>
						<td><span class="label label-danger">{php echo $row['gsum1']+$row['gsum2']+$row['gsum9'];}</span></td>
						<td><span class="label label-success">{$row['ordercount']}</span></td>
						<td><span class="label label-warning">{$row['commcount']}</span></td>
						<td><span class="label label-success">{$row['fanssum']}</span></td>	
						<td><span class="label label-warning">{$row['scansum']}</span></td>
						<td><span class="label label-info">{$row['forward']}</span></td>
						<td><input type="checkbox" name="status[]" data-id="{$row['id']}" value="{$row['status']}" class="hidden" {if intval($row['status'])==1} checked="checked" {/if}/></td>
						<td style="text-align: right;">
						  <a class="btn btn-success btn-sm" style="font-size: 16px;" 
							href="{php echo createWebUrl($do, array('op'=>'post','id'=>$row['id']));}"
							title="编辑设置"><i class="fa fa-edit">活动编辑</i></a>
							
                        </td>
					</tr>
					{/loop}
				</tbody>
			</table>
		</div>
		{$pager}
	</div> -->
</div>

<script type="text/javascript">
	$(function(){
		$('.app-preview').click(function(){
			return false;
		});
		require(['underscore', 'bootstrap.switch'], function() {
			$(":checkbox[name='status[]']").bootstrapSwitch();
			$(':checkbox').on('switchChange.bootstrapSwitch', function(e, state){
				$this = $(this);
				var id = $(this).data('id');
				var status = this.checked ? 1 : 0;
				$.post("{php echo createWebUrl($do, array('op' => 'status'));}", {status:status,id: id}, function(resp){
					resp = $.parseJSON(resp);
					if(resp.message.errno != 0) {
						layer.msg('操作失败, 请稍后重试');
					} else {
						layer.msg('操作成功');
					}
				});
			});		
			
		});
	});
</script>
{else}
    
		{include file='yxnavbar'}
<style>
.table td span{display:inline-block;margin-top:4px;}
.table td input{margin-bottom:0;}
</style>
<form class="form-horizontal form" action="" id="form1"  method="post" enctype="multipart/form-data">
		<ul class="nav nav-tabs">
			<li role="presentation" class="active"><a href="#basic" aria-controls="basic" role="tab" data-toggle="pill">
	            {if $system['ruanjian']==1}
	            	微团
	        	{elseif $system['ruanjian']==2}
	        		拼团2020
	        	{elseif $system['ruanjian']==3}
	        		异业联盟
	        	{elseif $system['ruanjian']==0 && $system['softstyle']==5}
	        		加盟
	        	{else}
	        		拼团2019
	        	{/if}</a></li>
			<li role="presentation" class=""><a href="#imgset" aria-controls="imgset" role="tab" data-toggle="pill">图文内容</a></li>
			<li role="presentation" class=""><a href="#dianliangset" aria-controls="dianliangset" role="tab" data-toggle="pill">点亮图标</a></li>
			{if $system['fanpai']==1}
			<li role="presentation" class=""><a href="#fanpaiset" aria-controls="fanpaiset" role="tab" data-toggle="pill">翻牌抽奖</a></li>
			{/if}
			{if $system['fenxiao']==1}
			<li role="presentation" class=""><a href="#fenxiaoset" aria-controls="fenxiaoset" role="tab" data-toggle="pill">分销红包</a></li>
			{/if}
			<!-- <li role="presentation" class=""><a href="#shareset" aria-controls="shareset" role="tab" data-toggle="pill">分享设置</a></li> -->
			<li role="presentation" class=""><a href="#formset" aria-controls="formset" role="tab" data-toggle="pill">表单设置</a></li>
			<li role="presentation" class=""><a href="#wenziset" aria-controls="wenziset" role="tab" data-toggle="pill">按扭文字</a></li>
			{if $system['ruanjian']==10}
			<li role="presentation" class=""><a href="#kmset" aria-controls="kmset" role="tab" data-toggle="pill">卡密设置</a></li>
			{/if}
			{if ($system['wxapp']!=0 && $system['softmode']!=0) }
			<li role="presentation" class=""><a href="#xcxset" aria-controls="xcxset" role="tab" data-toggle="pill">小程序</a></li>
			{if $system['live']==1}
			<li role="presentation" class=""><a href="#live" aria-controls="live" role="tab" data-toggle="pill">小程序直播</a></li>
			{/if}
			{/if}
			<li role="presentation" class=""><a href="#mobileset" aria-controls="mobileset" role="tab" data-toggle="pill">手机管理</a></li>
			<li role="presentation" class=""><a href="#otherset" aria-controls="otherset" role="tab" data-toggle="pill">其它设置</a></li>
			{if $id>0}
			<li role="presentation" class=""><a href="#urlset" aria-controls="urlset" role="tab" data-toggle="pill">二维码</a></li>
			{/if}
		</ul>
<div class="main">
<div class="tab-content" style="">

<!-- 	<div class="tab-pane" id="fenxiaoset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">三级分销</div>
			<div class="panel-body" style="">
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">三级分销</div>
			<div class="panel-body" style="">
			</div>
		</div>
	</div> -->

	<div class="tab-pane active" id="basic">

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">活动信息</div>
			<div class="panel-body" style="">
	                <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">活动主标题</label>
	                    <div class="col-sm-8 col-xs-12">
	                        <input type="text" class="form-control"  placeholder="" name="title"  value="{$theme['title']}">
	                    	<span class="help-block">活动主标题,精而简,建议15字左右,尽量不要超27个汉字,不可包含特殊符号、广告法禁用词以及微信违规词</span>
	                    </div>
	                </div>
	                {if $system['wxapp']==0 || $system['softmode']!=1 }
	                <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">活动副标题</label>
	                    <div class="col-sm-8 col-xs-12">
	                        <input type="text" class="form-control"  placeholder="" name="desc" value="{$theme['desc']}">
	                    	<span class="help-block">活动副标题,建议40字以内,不可包含特殊符号</span>
	                    </div>
	                </div>
	                {/if}
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">起止时间</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_daterange('themetime', array('start'=>date('Y-m-d H:i:s',$theme['begintime']),'end'=>date('Y-m-d H:i:s',$theme['endtime'])), true);}
						<span class="help-block">活动的起止时间，时间段内活动有效</span>
					</div>
				</div>
	            <div class="form-group">
	             <label class="col-sm-2 col-xs-12 control-label">活动状态</label>
	            	<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
						<label class="radio-inline">
							<input name="status" value="0" {if $theme['status']==0} checked="checked"{/if} type="radio"> 暂停
						</label>
						<label class="radio-inline">
							<input name="status" value="1" {if $theme['status']==1} checked="checked"{/if} type="radio"> 启用
						</label>
						<label class="radio-inline">
							<input name="status" value="2" {if $theme['status']==2} checked="checked"{/if} type="radio"> 结束
						</label>
					</div>
	            </div> 
	            {if $_G['isSuperAdmin']}
	                <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">软件激活码</label>
	                    <div class="col-sm-8 col-xs-12">
	                        <input type="text" class="form-control"  placeholder="" name="softsn"  value="{$theme['softsn']}">
	                    	<span class="help-block">未激活:电脑无法查看定单管理与结帐,手机版无法添加员工及管理</span>
	                    </div>
	                </div>
	            {/if}
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">价格设置</div>
			<div class="panel-body" style="">
			{if $system['ruanjian']==1 || $system['ruanjian']==3 && $system['softstyle']==4}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">报名费</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
						</div>
						<span class="help-block">价格为空为免费报名</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">活动限购</label>
					<div class="col-sm-10 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">限购</span>
						<input type="text" class="form-control"  placeholder="" name="renshu"  value="{$config['renshu']}">
						<span class="input-group-addon">单位</span>
						<select class="form-control" name="renshudanwei">
			         		<option value="个" {if $config['renshudanwei'] == "个" }selected="selected"{/if}>个</option>
			         		<option value="人" {if $config['renshudanwei'] == "人" }selected="selected"{/if}>人</option>
			         		<option value="套" {if $config['renshudanwei'] == "套" }selected="selected"{/if}>套</option>
			         		<option value="单" {if $config['renshudanwei'] == "单" }selected="selected"{/if}>单</option>
			     		 </select>
						<span class="input-group-addon">模式</span>
						<select class="form-control" name="renshumode">
			         		<option value="0" {if $config['renshumode'] == 0 }selected="selected"{/if}>达到多少人享受优惠，达到人数还可报名</option>			
			         		<option value="2" {if $config['renshumode'] == 2 }selected="selected"{/if}>达到多少人享受优惠，达到人数活动结束</option>
			         		<option value="1" {if $config['renshumode'] == 1 }selected="selected"{/if}>限购剩余多少，剩余为0活动结束</option>
			     		 </select>
				     	</div>
					</div>
				</div>
			{elseif $system['softstyle']==5}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">全款加盟价</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="groupprice"  value="{$config['groupprice']}">
						</div>
							<span class="help-block">如：支付999元全款加盟</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">定金听课价</label>
					<div class="col-sm-5 col-xs-12">

						<div class="input-group">
							<span class="input-group-addon">￥</span>
							<input type="text" class="form-control"  placeholder="" name="primeprice"  value="{$config['primeprice']}">
						</div>
							<span class="help-block">如：预付9.9元线上听课</span>

					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">线上定金</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
						</div>
						<span class="help-block">线上定金为空则以上上面实际金额支付</span>
					</div>
				</div>

			{else}
				{if $system['ruanjian'] == '0'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">市场价</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="marketprice"  value="{$config['marketprice']}">
						</div>
						<span class="help-block">市场价为空则不显示折扣价,即首图下方原价多少,几人团多少价的提示不显示</span>
					</div>
				</div>
				{/if}


				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">拼团价{if $system['ruanjian'] == '4'}①{/if}</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="groupprice"  value="{$config['groupprice']}">
						</div>
					</div>
				</div>
				{if $system['ruanjian'] == '4'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">拼团价②</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="groupprice2"  value="{$config['groupprice2']}">
						</div>
					</div>
				</div>
				{/if}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">单买价</label>
					<div class="col-sm-5 col-xs-12">

						<div class="input-group">
							<span class="input-group-addon">￥</span>
							<input type="text" class="form-control"  placeholder="" name="primeprice"  value="{$config['primeprice']}">
						</div>

					</div>
				</div>

				{if $system['jiage'] <1 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">定金</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
						</div>
					</div>
				</div>
				{else}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">定金描述</label>
					<div class="col-sm-5 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="duojiagetips"  value="{$config['duojiagetips']}">
						<span class="help-block">如：拍摄类型 产品类型 服务类型</span>

					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">定金1</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">名称</span>
						<input type="text" class="form-control"  placeholder="" name="joinname"  value="{$config['joinname']}">
						<span class="input-group-addon">金额</span>
						<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
						</div>
						<span class="help-block">如：婚纱照收100元，儿童/写真收50元</span>
					</div>
				</div>
				{/if}
				{if $system['jiage'] >0 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">定金2</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">名称</span>
						<input type="text" class="form-control"  placeholder="" name="joinname2"  value="{$config['joinname2']}">
						<span class="input-group-addon">金额</span>
						<input type="text" class="form-control"  placeholder="" name="joinfee2"  value="{$config['joinfee2']}">
						</div>
					</div>
				</div>
				{/if}
				{if $system['jiage'] >1 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">定金3</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">名称</span>
						<input type="text" class="form-control"  placeholder="" name="joinname3"  value="{$config['joinname3']}">
						<span class="input-group-addon">金额</span>
						<input type="text" class="form-control"  placeholder="" name="joinfee3"  value="{$config['joinfee3']}">
						</div>
					</div>
				</div>
				{/if}

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">成团人数</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">团{if $system['ruanjian'] == '4'}①{/if}</span>
							<input type="text" class="form-control"  placeholder="" name="maxcountall"  value="{$config['maxcountall']}">

							{if $system['ruanjian'] == '4'}
							<span class="input-group-addon">团②</span>
							<input type="text" class="form-control"  placeholder="" name="maxcountall2"  value="{$config['maxcountall2']}">
								{if $system['ruanjian'] != '4'}
								<span class="input-group-addon">团③</span>
								<input type="text" class="form-control"  placeholder="" name="maxcountall3"  value="{$config['maxcountall3']}">
								<span class="input-group-addon">团④</span>
								<input type="text" class="form-control"  placeholder="" name="maxcountall4"  value="{$config['maxcountall4']}">
								<span class="input-group-addon">团⑤</span>
								<input type="text" class="form-control"  placeholder="" name="maxcountall5"  value="{$config['maxcountall5']}">
								{/if}
							{/if}
						</div>
						{if $system['ruanjian'] == '4'}
						<span class="help-block">如:团①为3,团②为5,客户开团为3人团,当达到3人团提示3人团成功,并自动开5人团;</span>
						{/if}
						{if $system['ruanjian'] == '4'}
						<span class="help-block">拼团价②大于0时团③-⑤参数失效.</span>
						{/if}
						<input type="hidden" name="maxcount" value="{$config['maxcount']}" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">拼团模式</label>
					<div class="col-sm-5 col-xs-12">
						<select class="form-control" name="tuanmode">
			         		<option value="0" {if $config['tuanmode'] == 0 }selected="selected"{/if}>正常拼团</option>
			         		<option value="1" {if $config['tuanmode'] == 1 }selected="selected"{/if}>无限成团,团满依旧可以加入</option>
			     		 </select>
					</div>
				</div>
				{if $system['ruanjian'] == '2'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">线上补余款</label>
					<div class="col-sm-10 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">全款金额</span>
						<input type="text" class="form-control"  placeholder="" name="yukuan"  value="{$config['yukuan']}">
						<span class="input-group-addon">补款时间</span>
						{php echo view_form_field_date('yukuantime', date('Y-m-d H:i:s',$config['yukuantime']), true);}
						<span class="input-group-addon">分销</span>
						<select class="form-control" name="yukuanfenxiao">
			         		<option value="0" {if $config['yukuanfenxiao'] == 0 }selected="selected"{/if}>正常分销</option>
			         		<option value="1" {if $config['yukuanfenxiao'] == 1 }selected="selected"{/if}>停止分销红包</option>
			     		 </select>
				     	</div>
						<span class="help-block">注：到了补款时间，若客户已付定金，则只补余款，若未付定金则补全款；</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">活动限购</label>
					<div class="col-sm-10 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">限购</span>
						<input type="text" class="form-control"  placeholder="" name="renshu"  value="{$config['renshu']}">
						<span class="input-group-addon">单位</span>
						<select class="form-control" name="renshudanwei">
			         		<option value="个" {if $config['renshudanwei'] == "个" }selected="selected"{/if}>个</option>
			         		<option value="人" {if $config['renshudanwei'] == "人" }selected="selected"{/if}>人</option>
			         		<option value="套" {if $config['renshudanwei'] == "套" }selected="selected"{/if}>套</option>
			         		<option value="单" {if $config['renshudanwei'] == "单" }selected="selected"{/if}>单</option>
			     		 </select>
						<span class="input-group-addon">模式</span>
						<select class="form-control" name="renshumode">
			         		<option value="0" {if $config['renshumode'] == 0 }selected="selected"{/if}>达到多少人享受优惠，达到人数还可报名</option>			
			         		<option value="2" {if $config['renshumode'] == 2 }selected="selected"{/if}>达到多少人享受优惠，达到人数活动结束</option>
			         		<option value="1" {if $config['renshumode'] == 1 }selected="selected"{/if}>限购剩余多少，剩余为0活动结束</option>
			     		 </select>
				     	</div>
					</div>
				</div>
				{/if}
			{/if}
			</div>
		</div>
		{if $_G['isSuperAdmin']}
		<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">软件标签</div>
		<div class="panel-body" style="">
			
            <div class="form-group">
                <label class="col-sm-2 col-xs-12 control-label">行业</label>
                <div class="col-sm-10 col-xs-12">
                {loop $softtaglist[0] $row}
                    <label class="radio-inline">
                        <input name="softtag0[]" type="checkbox" value="{$row}" 
                        {if (strstr($config['softtag0'] . ",",$row .",")!==false )}
                            checked 
                        {/if}
                        > {$row}
                    </label>
                {/loop}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 col-xs-12 control-label">主题</label>
                <div class="col-sm-10 col-xs-12">
                {loop $softtaglist[1] $row}
                    <label class="radio-inline">
                        <input name="softtag1[]" type="checkbox" value="{$row}" 
                        {if (strstr($config['softtag1'] . ",",$row .",")!==false )}
                            checked 
                        {/if}
                        > {$row}
                    </label>
                {/loop}
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 col-xs-12 control-label">节日</label>
                <div class="col-sm-10 col-xs-12">
                {loop $softtaglist[2] $row}
                    <label class="radio-inline">
                        <input name="softtag2[]" type="checkbox" value="{$row}" 
                        {if (strstr($config['softtag2'] . ",",$row .",")!==false )}
                            checked 
                        {/if}
                        > {$row}
                    </label>
                {/loop}
                </div>
            </div>
			</div>
		</div>
	    {/if}
		<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">数据统计</div>
		<div class="panel-body" style="">
            <div class="form-group">
                <label class="col-sm-2 col-xs-12 control-label">显示头像模式</label>
                <div class="col-sm-8 col-xs-12">
					<label class="radio-inline">
						<input name="touxiang" value="0" {if $config['touxiang']==0} checked="checked"{/if} type="radio"> 打开的客户
					</label>
					<label class="radio-inline">
						<input name="touxiang" value="1" {if $config['touxiang']==1} checked="checked"{/if} type="radio"> 填写姓名电话的
					</label>
					<label class="radio-inline">
						<input name="touxiang" value="2" {if $config['touxiang']==2} checked="checked"{/if} type="radio"> 支付的客户
					</label>
					<span class="help-block">报名人数=真实人数(打开的客户/报名/已支付三选一)+虚拟人数</span>
					<span class="help-block">头像下方客户名字:打开客户为微信昵称,其它2个为真实姓名</span>
                </div>
            </div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">虚拟报名人数</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fakejoin"  value="{$config['fakejoin']}">
						<span class="input-group-addon">人</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">虚拟参与人数</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="faketuan"  value="{$config['faketuan']}">
						<span class="input-group-addon">人</span>
					</div>
				</div>
			</div>
<!-- 			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">{php echo $system['softstyle']==7 || $system['ruanjian']==1?'虚拟转发':'虚拟团数';} </label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="faketuan"  value="{$config['faketuan']}">
						<span class="input-group-addon">{php echo $system['softstyle']==7 || $system['ruanjian']==1?'次':'团';}</span>
					</div>
				</div>
			</div> -->
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">虚拟浏览</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fakescan"  value="{$config['fakescan']}">
						<span class="input-group-addon">次</span>
					</div>
				</div>
			</div>
			{if $system['fenxiao07'] == '1'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">虚拟摇一摇</label>
					<div class="col-sm-6 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">虚拟人数</span>
							<input class="form-control" placeholder="例如:20" name="comm7num" value="{$config['comm7num']}" type="text">
							<span class="input-group-addon">虚拟钱数</span>
							<input class="form-control" placeholder="例如:100" name="comm7fee" value="{$config['comm7fee']}" type="text">
						</div>
						<span class="help-block" >摇一摇红包的虚拟数</span>
					</div>
				</div>
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">附近的团</label>
				<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
					<label class="radio-inline">
						<input name="isrecent" value="0" {if $config['isrecent']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="isrecent" value="1" {if $config['isrecent']==1} checked="checked"{/if} type="radio"> 开启
					</label>
				</div>
			</div>
			{if $system['ruanjian']==2}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">快速搜索</label>
				<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
					<label class="radio-inline">
						<input name="issearch" value="0" {if $config['issearch']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="issearch" value="1" {if $config['issearch']==1} checked="checked"{/if} type="radio"> 开启
					</label>
				</div>
			</div>
			{/if}
				{if $_G['isSuperAdmin']}
<!-- 				    <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">结帐日期</label>
	                    <div class="col-sm-6 col-xs-12">
	                        <input type="text" class="form-control"  placeholder="" name="jiezhang"  value="{$theme['jiezhang']}">
	                        <span class="help-block">结帐后前段会显示水印,后台无法退款,结帐{php echo date('Y-m-d');}</span>
	                    </div>
	                </div>  -->
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">充值/提现金额</label>
						<div class="col-sm-6 col-xs-12">
							<div class="input-group">
							<span class="input-group-addon">充值</span>
							<input type="text" class="form-control"  placeholder="" name="chongzhi"  value="{php echo $theme['chongzhi']<0?0:$theme['chongzhi'];}">
							<span class="input-group-addon">提现</span>
							<input type="text" class="form-control"  placeholder="" name="tixian"  value="{php echo $theme['chongzhi']>0?0:-$theme['chongzhi'];}">
							<span class="input-group-addon">最多可退款单数</span>
							<input type="text" class="form-control"  placeholder="" name="refundfee"  value="{$theme['refundfee']}">
							</div>
						</div>
					</div>
	            {/if}
			</div>
		</div>

	</div>
	<div class="tab-pane " id="imgset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">图文内容{if $isold==true && !$_G['isSuperAdmin']}<span style="color: red">(已禁用,如需修改请联系工作人员)</span>{/if}</div>
			<div class="panel-body" style="">
                
               <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">Banner轮播</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_multi_image('bannerimgs',$config['bannerimgs']);}
						<span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用,{/if}第一张为活动主图，且为默认的分享图，只有一张时不进行轮播</span>
						{if $isposter}
						<span class="help-block" style="color:red">此活动开启了首图海报，打开员工的链接，将替换活动页面的首图，改为带有员工的二维码的海报图,若为轮播将在最后加入此海报</span>
						{/if}
                    </div>
                </div>
               <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">Banner视频</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_video('bannervideo',$config['bannervideo']);}
                       <span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用，{/if}精简视频，控制在90秒内为最佳，图文内容还可以放其它视频</span>
                    </div>
                </div>
               <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">顶部图片组</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_multi_image('centerimgs',$config['centerimgs']);}
                       <span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用,{/if}在头像下方显示;启用点亮星星时,在其上方</span>
                    </div>
                </div>
               <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">裂变图片</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_multi_image('imgs',$config['imgs']);}
                       <span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用,{/if}启用点亮星星时,在其中间显示的图片内容,不启用不显示</span>
                       <span class="help-block">启用摇一摇红包时,在红包图片下方显示,不启用不显示</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">活动内容</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_ueditor('content', $config['content']);}
                       <span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用,{/if}活动的正文,可放文字/图片/视频</span>
                    </div>
                </div>

				<div class="form-group">					
					<label class="col-sm-2 col-xs-12 control-label">底部二维码</label>
					{if $system['softmode']!=1 || $system['wxapp']==0}
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_image('addimg',$theme['addimg']);}
						<span class="help-block">H5：长按图片识别二维码 关注官方客服微信</span>
					</div>
					{/if}
					{if $system['wxapp']!=0 && $system['softmode']!=0}
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_image('addimgxcx',$theme['addimgxcx']);}
						<span class="help-block">小程序：截图保存二维码，打开微信扫一扫，关注官方客服微信</span>
					</div>
					{/if}
				</div>

                {if $system['wxapp']!=0 && $system['softmode']!=0}
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>店铺导航坐标</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="mappoint"  value="{$config['mappoint']}">
                        <span class="help-block">此值为空不显示导航 如：36.074077,120.395737<a style="color: #ff0000" href="https://lbs.qq.com/tool/getpoint/index.html" target="_blank">点击打开坐标拾取器</a>，搜索地址后，复制当前坐标</span>
                    </div>
                </div>
                {/if}
                
               <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">视频底图</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_multi_image('videoimgs',$config['videoimgs']);}
                       <span class="help-block">多个视频需要上传对应数量的底图,底图尺寸：985*615px</span>
                    </div>
                </div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">客服二维码</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('kfewm',$config['kfewm']);}
                    	<span class="help-block">员工二维码未上传时，显示此二维码。</span>
					</div>
				</div>
	            <div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">背景音乐</label>
						<div class="col-sm-3 col-xs-12">
	                    <select class="form-control" id="musictype" name="musictype" onchange="changemusic();"> 
	                    <option value="">请选择音乐分类</option>
	                    </select>
	                </div>
						<div class="col-sm-3 col-xs-12">
	                    <select class="form-control" id = "musicname" name="musicname" onchange="changemusicname();" > 
	                    <option value="">请选择音乐</option>
	                    </select>
	                </div>
	            </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label"></label>
                    <div class="col-sm-8 col-xs-12">
                        {php echo view_form_field_audio('musicsrc',$config['musicsrc']);}
                    	<span class="help-block">mp3文件 不要太大 影响页面加载 用格式工厂压缩一下,控制在1M内</span>
                    </div>
                </div>
            </div>        
		</div>

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">交易凭证信息{if $isold==true && !$_G['isSuperAdmin']}(已禁用,如需修改请联系工作人员){/if}</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>主办方</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jubf" readonly value="{$theme['jubf']}">
						<span class="help-block">不可更改,如需更改需联系工作人员</span>
					</div>
				</div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>客服电话</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="mobile"  value="{$theme['mobile']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">地址</label>
                    <div class="col-sm-8 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">{$config['province']}</span>
						<span class="input-group-addon">{$config['city']}</span>
						<span class="input-group-addon">{$config['district']}</span>
                        <input type="text" class="form-control"  placeholder="" name="addresstxt"  value="{$config['addresstxt']}">
				     	</div>
						<span class="help-block">地区不可更改,如需更改需联系工作人员</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">时间文字描述</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="zhuandantxt"  value="{$config['zhuandantxt']}">
						<span class="help-block" >如：转单时间 选套系时间 感恩回馈日，为空时不显示</span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">转单时间</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_daterange('zhuandantime', array('start'=>date('Y-m-d H:i:s',$config['zhuandanbegintime']),'end'=>date('Y-m-d H:i:s',$config['zhuandanendtime'])), false);}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">活动说明</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="zhuandantips"  value="{$config['zhuandantips']}">
						<span class="help-block" >如：定金不退不换 不可与其它活动重叠使用，建议不要用最终解释权归*所有，属霸王条款</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">弹窗说明</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('zhuandanimg',$config['zhuandanimg']);}
                    	<span class="help-block">客户付完款后在交易凭证上，弹窗显示，尺寸：640*1008</span>
					</div>
				</div>
			</div>
		</div>

		{if $system['qrlist']==1}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">二维码管理</div>
			<div class="panel-body" style="">
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>说明1</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="qrlistname1"  value="{if empty($config['qrlistname1'])}在线制作相册{else}{$config['qrlistname1']}{/if}">
                        <span class="help-block" >如：在线制作相册 进入直播群</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>说明2</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="qrlistname2"  value="{if empty($config['qrlistname2'])}识别二维码在线制作相册{else}{$config['qrlistname2']}{/if}">
                        <span class="help-block" >如：识别二维码在线制作相册</span>
                    </div>
                </div>
               <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">二维码图片组</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_multi_image('qrlistimgs',$config['qrlistimgs']);}
                       <span class="help-block">客户下单后在头像下方显示，下方紧跟二维码</span>
                    </div>
                </div>


                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">发放模式</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="qrlistmode" value="0" {if $config['qrlistmode']==0} checked="checked"{/if} type="radio"> 付款发放
						</label>
						<label class="radio-inline">
							<input name="qrlistmode" value="1" {if $config['qrlistmode']==1} checked="checked"{/if} type="radio"> 拼团成功发放
						</label>
					</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">自动补发</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="qrlistbufa" value="0" {if $config['qrlistbufa']==0} checked="checked"{/if} type="radio"> 开启
						</label>
						<label class="radio-inline">
							<input name="qrlistbufa" value="1" {if $config['qrlistbufa']==1} checked="checked"{/if} type="radio"> 关闭
						</label>
						 <span class="help-block">当二维码发完时，系统自动停发，当系统有新增的二维码时，付款的客户打开链接即可补发</span>
					</div>
                </div>
			</div>
		</div>
		{/if}
	</div>
	<div class="tab-pane " id="dianliangset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">点亮信息</div>
			<div class="panel-body" style="">

                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">点亮模式</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isicon" value="0" {if $config['isicon']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="isicon" value="1" {if $config['isicon']==1} checked="checked"{/if} type="radio"> 转发朋友圈点亮
						</label>
						<label class="radio-inline">
							<input name="isicon" value="2" {if $config['isicon']==2} checked="checked"{/if} type="radio"> 朋友阅读点亮
						</label>
						<label class="radio-inline">
							<input name="isicon" value="3" {if $config['isicon']==3} checked="checked"{/if} type="radio"> 邀请好友点亮
						</label>
						 <span class="help-block">转发朋友圈点亮:转发朋友圈亮一颗,每天只能点亮一颗</span>
						 <span class="help-block">朋友阅读点亮:分享到朋友圈或好友,新客户打开记一个阅读,根据设置的阅读点亮比例值,计算点亮的星星数
						 例如:A转发后,有16个好友打开看过,设置的阅读点亮比例值为5,则此时点亮为3颗,如果设置的阅读点亮比例值为1,则此时点亮为16颗</span>
						 <span class="help-block">邀请好友点亮:客户报名后邀请朋友,帮TA点亮</span>
						 <span class="help-block">谨防被举报 不满足城市限制的点亮模块自动不显示</span>
					</div>
                </div>

				<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">收集资料</label>
                    	<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iconziliao" value="0" {if $config['iconziliao']!=1} checked="checked"{/if} type="radio"> 收集
						</label>
						<label class="radio-inline">
							<input name="iconziliao" value="1" {if $config['iconziliao']==1} checked="checked"{/if} type="radio"> 不收集
						</label>
                    	<span class="help-block">未报名的客户，转发点亮时提示输入信息，从而收集资料</span>
                    	<span class="help-block">转发朋友圈点亮+H5朋友阅读点亮,生效</span>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">点亮图标</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_image('darkicon',$config['darkicon']);}
						<span class="help-block">未点亮：尺寸:200*200px</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_image('lighticon',$config['lighticon']);}
						<span class="help-block">点亮图：尺寸:200*200px</span>
					</div>
				</div>

            <div class="form-group">
            	<label class="col-sm-2 col-xs-12 control-label">图标LOGO</label>
				 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="iconlogo" value="0" {if $config['iconlogo']!=1} checked="checked"{/if} type="radio"> 默认
					</label>
					<label class="radio-inline">
						<input name="iconlogo" value="1" {if $config['iconlogo']==1} checked="checked"{/if} type="radio"> 商家logo
					</label>
				</div>
            </div>


			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">图标个数</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="iconnum"  value="{$config['iconnum']}">
					<span class="help-block">图标的个数代表转发朋友圈次数（一天内的分享算一次，点亮一个图标）</span>
				</div>
			</div>

            <div class="form-group">
            	<label class="col-sm-2 col-xs-12 control-label">一行几个星星</label>
				 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="iconhang" value="0" {if $config['iconhang']==0} checked="checked"{/if} type="radio"> 自动
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="28" {if $config['iconhang']==28} checked="checked"{/if} type="radio"> 3
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="21" {if $config['iconhang']==21} checked="checked"{/if} type="radio"> 4
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="16" {if $config['iconhang']==16} checked="checked"{/if} type="radio"> 5
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="13" {if $config['iconhang']==13} checked="checked"{/if} type="radio"> 6
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="11" {if $config['iconhang']==11} checked="checked"{/if} type="radio"> 7
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="9" {if $config['iconhang']==9} checked="checked"{/if} type="radio"> 8
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="7" {if $config['iconhang']==7} checked="checked"{/if} type="radio"> 9
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="6" {if $config['iconhang']==6} checked="checked"{/if} type="radio"> 10
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="5" {if $config['iconhang']==5} checked="checked"{/if} type="radio"> 12
					</label>
					<label class="radio-inline">
						<input name="iconhang" value="3" {if $config['iconhang']==3} checked="checked"{/if} type="radio"> 15
					</label>
				</div>
            </div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">点亮背景颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('starbgcolor',$config['starbgcolor']);}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">点亮按扭颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('starbtcolor',$config['starbtcolor']);}
						<span class="help-block">按扭颜色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('startextcolor',$config['startextcolor']);}
						<span class="help-block">按扭文字颜色</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">转发点亮_每天可以点亮几颗</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="todayicon"  value="{if empty($config['todayicon'])}1{else}{$config['todayicon']}{/if}">
					</div>
				</div>


				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">点亮按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="iconname"  value="{$config['iconname']}">
						<span class="help-block">点亮按扭文字，例如：立即点亮小星星</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">好友点亮_底部点亮按扭</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="iconname_menu"  value="{$config['iconname_menu']}">
						<span class="help-block">为空菜单栏不显示, 例如：立即点亮小星星 转发点亮</span>
					</div>
				</div>
                <div class="form-group" >
                    <label class="col-sm-2 col-xs-12 control-label">好友点亮_点亮成功</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="friend_success"  value="{$config['friend_success']}">
                    	<span class="help-block">如：给好友助力成功 已送TA星星;邀请好友点亮模式生效</span>
                    </div>
                </div>
				<div class="form-group" >
					<label class="col-sm-2 col-xs-12 control-label">好友点亮_动作</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="friend_name"  value="{$config['friend_name']}">
						<span class="help-block">如：助力 点赞 送星星 送玫瑰</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">好友点亮_客户要求</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="friendorder" value="0" {if $config['friendorder']!=1} checked="checked"{/if} type="radio"> 已报名客户
						</label>
						<label class="radio-inline">
							<input name="friendorder" value="1" {if $config['friendorder']==1} checked="checked"{/if} type="radio"> 未报名+已报名
						</label>
						<span class="help-block">客户报名后才可以邀请别人点亮,还是未报名也可以邀请点亮</span>
					</div>
				</div>


				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">阅读点亮_比例值</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="iconnum2"  value="{$config['iconnum2']}">
						<span class="help-block" >
							【点亮一颗图标需要N个人阅读就填N】
							A分享出去，假如有10个不同的人看过，此处如果填3，那么点亮3颗，整除；
							李四看过之后，张三的阅读值+1，李四作为张三的阅读者，则无法给其他人作为阅读者
					</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">阅读点亮_每日限制</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="iconlimit"  value="{$config['iconlimit']}">
						<span class="help-block">0为不限制，若设置1 则表示24小时内阅读次数最多为1，多了无效;小程序用户限制时每日限制没有那么准确，总数是准的。</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">阅读点亮_小程序用户限制</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iconlimituser" value="0" {if $config['iconlimituser']==0} checked="checked"{/if} type="radio"> 所有
						</label>
						<label class="radio-inline">
							<input name="iconlimituser" value="1" {if $config['iconlimituser']==1} checked="checked"{/if} type="radio"> 授权头像
						</label>
						<label class="radio-inline">
							<input name="iconlimituser" value="2" {if $config['iconlimituser']==2} checked="checked"{/if} type="radio"> 授权电话
						</label>
						<label class="radio-inline">
							<input name="iconlimituser" value="3" {if $config['iconlimituser']==3} checked="checked"{/if} type="radio"> 授权头像+电话
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">邀请提示</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('gifttip',$config['gifttip']);}
						<span class="help-block">尺寸大小:330*228</span>
						<span class="help-block">邀请提示，透明背景，尽量不出现分享字眼 <a style="color: #000000" href="https://css2019.yixuan.net/2019css/default/images/fenxiao.psd" target="_blank">点击下载H5模版</a><a style="color: #000000" href="https://css2019.yixuan.net/2019css/default/images/fenxiaoxcx.psd" target="_blank">点击下载小程序模版</a></span>
					</div>
				</div>


			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">高级配置</div>
			<div class="panel-body" style="">
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">分享提示</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_image('sharetip',$config['sharetip']);}
                       <span class="help-block">尺寸大小:330*228</span>
                       <span class="help-block">分享提示图片，透明背景，尽量不出现分享字眼 <a style="color: #000000" href="https://css2019.yixuan.net/2019css/default/images/fenxiao.psd" target="_blank">点击下载模版</a></span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">赠送奖品</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="icongift"  value="{$config['icongift']}">
                    	<span class="help-block">点亮全部图标赠送的奖品名称信息，例如：点亮图标赠送跳舞机器人</span>
                    </div>
                </div> 
                <div class="form-group" style="display: none;">
                    <label class="col-sm-2 col-xs-12 control-label">奖品库存</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="icongiftsum"  value="{$config['icongiftsum']}">
                    	<span class="help-block">点亮全部图标赠送的奖品库存总数</span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>限制城市</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="limitcity"  value="{$config['limitcity']}">
						<span class="help-block" >地级市，填全称，例如 北京市，只填北京即可，不填表示不限制，不满足城市的点亮模块自动不显示 谨防被举报</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>跳转URL</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="url"  value="{$config['url']}">
						<span class="help-block" >配合限制城市，不满足条件的跳转URL,不填不跳转，大部分信息会自动隐藏</span>
					</div>
				</div>
			</div>
		</div>
		{if $system['friend'] == '1'}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">邀请助力点赞送星星</div>
			<div class="panel-body" style="">
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">单位+描述</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control" placeholder="" name="friend_unit" value="{$config['friend_unit']}">
                        <span class="help-block">如：颗星星 个积分</span>
                    </div>
                </div> 
                <div class="form-group" >
                    <label class="col-sm-2 col-xs-12 control-label">底部按扭-执行</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="friend_anniu"  value="{$config['friend_anniu']}">
                    	<span class="help-block">如：给好友助力 点击送星星</span>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">选择兑换礼品分组</label>
                    <div class="col-sm-8 col-xs-12">
                        <select class="form-control" name="friend_groupid">
                        <option value="0">请选择兑换礼品分组</option>
                   		{loop $grouplist $row}
			         		<option value="{$row['id']}" {if $config['friend_groupid'] == $row['id'] }selected="selected"{/if}>{$row['groupname']}</option>
			       		{/loop}
			     		 </select>
                    	<span class="help-block">选择邀请好友助力的礼品分组 <a style="color: #ff0000" href="{php echo createWebUrl('giftgroup',array('op' => 'giftgroup','themeid'=>$themeid));}" target="_blank">点击设置礼品</a></span>
                    </div>
                </div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">等待时间</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="friend_wait"  value="{$config['friend_wait']}">
						<span class="help-block">0为不等待，好友打开链接送星星或助力时需要等待几秒钟才可以操作</span>
					</div>
				</div>
			</div>
		</div>
		{/if}
	</div>
	{if $system['fenxiao'] == '1'}
		{include file='setcomm'}
	{/if}
	{if $system['ruanjian']==0 && $system['softstyle']==5}
	<div class="tab-pane" id="wenziset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">全款加盟文字</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">全款加盟别名</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jmbiemingwenzi"  value="{if empty($config['jmbiemingwenzi'])}全款加盟{else}{$config['jmbiemingwenzi']}{/if}">
					<span class="help-block">以下几个按扭文字支持通配符:#fee表示报名费 #dan表示定金价 #tuan表示全款价</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jmdibuwenzi"  value="{if empty($config['jmdibuwenzi'])}立即全款加盟{else}{$config['jmdibuwenzi']}{/if}">
						<span class="help-block">如:立即全款加盟 全款抢购</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">支付按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jmzhifuwenzi"  value="{if empty($config['jmzhifuwenzi'])}点击支付报名费#fee元{else}{$config['jmzhifuwenzi']}{/if}">
						<span class="help-block">如:点击支付报名费#fee元</span>
					</div>
				</div>

	             <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">报名成功提示</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  name="jmlablesuccess"  value="{if empty($config['jmlablesuccess'])}恭喜您抢购成功{else}{$config['jmlablesuccess']}{/if}">
	                </div>
	            </div>
			</div>
		</div>		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">定金加盟文字</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">定金加盟别名</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jmbiemingwenzi2"  value="{if empty($config['jmbiemingwenzi2'])}定金加盟{else}{$config['jmbiemingwenzi2']}{/if}">
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jmdibuwenzi2"  value="{if empty($config['jmdibuwenzi2'])}立即定金加盟{else}{$config['jmdibuwenzi2']}{/if}">
						<span class="help-block">如:立即定金加盟 定金抢购</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">支付按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jmzhifuwenzi2"  value="{if empty($config['jmzhifuwenzi2'])}点击支付报名费#fee元{else}{$config['jmzhifuwenzi2']}{/if}">
						<span class="help-block">如:点击支付报名费#fee元</span>
					</div>
				</div>

	             <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">报名成功提示</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  name="jmlablesuccess2"  value="{if empty($config['jmlablesuccess2'])}定金支付成功{else}{$config['jmlablesuccess2']}{/if}">
	                </div>
	            </div>
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">其它文字</div>
			<div class="panel-body" style="">				
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">锁定地区提示</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="jmlocktext"  value="{if empty($config['jmlocktext'])}蓝色为已被抢定区域{else}{$config['jmlocktext']}{/if}">
						<span class="help-block">如:蓝色为已被抢定区域</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">多少家加盟底图</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('jmnumimg',$config['jmnumimg']);}
						<span class="help-block">底部客服图片640*102像素,如果为空则显示底色,例如：https://css2019.yixuan.net/2019css/jiameng/img/num.jpg</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部客服图片</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('jmkefuimg',$config['jmkefuimg']);}
						<span class="help-block">底部客服图片126*98,如果为空不显示,例如：https://css2019.yixuan.net/2019css/jiameng/img/kefu.png</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">确认选择城市下方图</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('jmcityimg',$config['jmcityimg']);}
						<span class="help-block">确认选择城市下方图640*150,如果为空不显示,例如：https://css2019.yixuan.net/2019css/jiameng/img/city.png</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">表单上方LOGO</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('jmlogo',$config['jmlogo']);}
						<span class="help-block">表单上方LOGO 224*94,如果为空不显示</span>
					</div>
				</div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">加盟规则</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_ueditor('jmcontent', $config['jmcontent']);}
                       <span class="help-block">活动的正文,可放文字/图片/视频</span>
                    </div>
                </div>
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">底部按扭颜色</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部按扭配色</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="buttontyle" value="0" {if $config['buttontyle']==0} checked="checked"{/if} type="radio"> 自定义
						</label>					
						<label class="radio-inline">
							<input name="buttontyle" value="1" {if $config['buttontyle']==1} checked="checked"{/if} type="radio"> 经典蓝
						</label>
						<label class="radio-inline">
							<input name="buttontyle" value="2" {if $config['buttontyle']==2} checked="checked"{/if} type="radio"> 拼多多红
						</label>
						<label class="radio-inline">
							<input name="buttontyle" value="3" {if $config['buttontyle']==3} checked="checked"{/if} type="radio"> 京东红
						</label>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">地区底色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorhead',$config['formcolorhead']);}
						<span class="help-block">地区颜色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorlefttext',$config['formcolorlefttext']);}
						<span class="help-block">地区文字颜色</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">成功销售底色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorcenter',$config['formcolorcenter']);}
						<span class="help-block">成功销售底部分的背景色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorcentertext',$config['formcolorcentertext']);}
						<span class="help-block">成功销售文字颜色</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">报名底色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolortop',$config['formcolortop']);}
						<span class="help-block">报名按扭与表单深色部分的背景色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorrighttext',$config['formcolorrighttext']);}
						<span class="help-block">报名按扭文字颜色</span>
					</div>
				</div>

			</div>
			<div class="panel-footer">弹出的提示窗口颜色与报名按扭颜色一致</div>
		</div>
	</div>
	
	{elseif $system['ruanjian']==1 || $system['ruanjian']==3 && $system['softstyle']==4}
	<div class="tab-pane" id="wenziset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">底部按扭文字</div>
			<div class="panel-body" style="">				
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">免费报名按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="wtformtextleft"  value="{if empty($config['wtformtextleft'])}立即免费在线报名{else}{$config['wtformtextleft']}{/if}">
						<span class="help-block">如:立即免费在线报名</span>
						<span class="help-block">以下几个按扭文字支持通配符:#br带表换行 #fee表示报名费 #dan表示单买价 #tuan表示拼团价</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">支付按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="wtformtextpay"  value="{if empty($config['wtformtextpay'])}立即支付#fee元抢购{else}{$config['wtformtextpay']}{/if}">
						<span class="help-block">如:立即支付#fee元抢购</span>
					</div>
				</div>
	             <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">报名成功提示</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  name="wtlablesuccess"  value="{if empty($config['wtlablesuccess'])}恭喜您抢购成功{else}{$config['wtlablesuccess']}{/if}">
	                </div>
	            </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部按扭样式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="wtisshowmenu" value="0" {if $config['wtisshowmenu']==0} checked="checked"{/if} type="radio"> 默认传统
						</label>
						<label class="radio-inline">
							<input name="wtisshowmenu" value="1" {if $config['wtisshowmenu']==1} checked="checked"{/if} type="radio"> 已报名*人
						</label>
						<span class="help-block">不显示时,可以在按扭文字设置价格,比如:支付29.9元开团</span>
					</div>
				</div>
	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">活动限购提示</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="为空为默认值" name="renshutips"  value="{$config['renshutips']}">
	                	<span class="help-block">限量#renshu个名额，已报名#baoming人</span>
	                	<span class="help-block">限量#renshu个名额，还剩余#shengyu个名额</span>
	                </div>
	            </div>
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">底部按扭颜色</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部按扭配色</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="buttontyle" value="0" {if $config['buttontyle']==0} checked="checked"{/if} type="radio"> 自定义
						</label>					
						<label class="radio-inline">
							<input name="buttontyle" value="1" {if $config['buttontyle']==1} checked="checked"{/if} type="radio"> 经典蓝
						</label>
						<label class="radio-inline">
							<input name="buttontyle" value="2" {if $config['buttontyle']==2} checked="checked"{/if} type="radio"> 拼多多红
						</label>
						<label class="radio-inline">
							<input name="buttontyle" value="3" {if $config['buttontyle']==3} checked="checked"{/if} type="radio"> 京东红
						</label>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">左侧按扭颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorhead',$config['formcolorhead']);}
						<span class="help-block">左侧按扭与表单浅色部分的背景色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorlefttext',$config['formcolorlefttext']);}
						<span class="help-block">左侧按扭文字颜色</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">右侧按扭颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolortop',$config['formcolortop']);}
						<span class="help-block">右侧按扭与表单深色部分的背景色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorrighttext',$config['formcolorrighttext']);}
						<span class="help-block">右侧按扭文字颜色</span>
					</div>
				</div>
			</div>
			<div class="panel-footer">弹出的提示窗口颜色与右侧按扭颜色一致</div>
		</div>
	</div>
	{else}
	<div class="tab-pane" id="wenziset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">底部按扭文字</div>
			<div class="panel-body" style="">				
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">原价购买文字</label>
					<div class="col-sm-6 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="formtextleft"  value="{if empty($config['formtextleft'])}￥#dan#br原价购买{else}{$config['formtextleft']}{/if}">
						<span class="help-block">如:原价购买 全款购买 老会员专享 注：类似单独购买是不可以用的</span>
						<span class="help-block">以下按扭文字通配符:#br带表换行 #fee表示报名费 #dan表示单买价 #tuan表示拼团价</span>
					</div>
					<div class="col-sm-2 col-xs-12">
						<label class="radio-inline"><input name="formtextleftopen" type="checkbox" value="1" {php echo $config['formtextleftopen']==1?'checked':'';}>H5关闭此按扭 </label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">没有团报名按扭</label>
					<div class="col-sm-8 col-xs-12">

						<div class="input-group">
							<span class="input-group-addon">{if $system['ruanjian'] == '4'}拼团①{else}发起拼团{/if}：</span>
							<input class="form-control" placeholder="默认为:立即报名" name="formtextcenter" value="{if empty($config['formtextcenter'])}￥#fee#br立即报名{else}{$config['formtextcenter']}{/if}" type="text">{if $system['ruanjian'] == '4'}
							<span class="input-group-addon">拼团②</span>
							<input class="form-control" placeholder="设置拼团价②此处生效" name="formtextcenter2" value="{if empty($config['formtextcenter2'])}￥#tuan#br5人团{else}{$config['formtextcenter2']}{/if}" type="text">{/if}
						</div>
						<span class="help-block">如:立即报名 立即抢购 我要参团  如:￥#fee#br立即报名 如:3人团#br我要参团</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">有组团报名按扭</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">新开团：</span>
							<input class="form-control" placeholder="默认为:我要开团" name="formtextcenternew" value="{if empty($config['formtextcenternew'])}￥#fee#br我要开团{else}{$config['formtextcenternew']}{/if}" type="text">
							<span class="input-group-addon">加入团：</span>
							<input class="form-control" placeholder="默认为:加入TA的团" name="formtextright" value="{if empty($config['formtextright'])}￥#fee#br加入TA的团{else}{$config['formtextright']}{/if}" type="text">
						</div>
						<span class="help-block">如:加入TA的团  如:￥#fee#br加入TA的团 如:3人团#br加入TA的团</span>
						<span class="help-block">客户报名后分享给好友,好友打开会出现这2个按扭,一个是我要开团一个是加入TA的团</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">按扭显示价格</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isshowprice" value="0" {if $config['isshowprice']==0} checked="checked"{/if} type="radio"> 不显示
						</label>
						<label class="radio-inline">
							<input name="isshowprice" value="1" {if $config['isshowprice']==1} checked="checked"{/if} type="radio"> 单买显示其它不显示
						</label>
						<label class="radio-inline">
							<input name="isshowprice" value="2" {if $config['isshowprice']==2} checked="checked"{/if} type="radio"> 显示
						</label>
						<span class="help-block">不显示时,可以在按扭文字设置价格,比如:支付29.9元开团</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">支付按扭文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="formtextpay"  value="{if empty($config['formtextpay'])}点击支付报名费#fee元{else}{$config['formtextpay']}{/if}">
						<span class="help-block">如:点击支付报名费#fee元</span>
					</div>
				</div>
	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">底部按扭上方提示</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="为空为默认值" name="buttontips"  value="{$config['buttontips']}">
	                	<span class="help-block">如:拼团2000人仅需499元,已有#totalsum人团</span>
	                	<span class="help-block">通配符:#totalsum报名人数,#groupsnum团数,#scansum浏览人数</span>
	                </div>
	            </div>


	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">组团邀请好友</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="例如:邀请好友参加" name="lableleadergs"  value="{if empty($config['lableleadergs'])}邀请好友参加{else}{$config['lableleadergs']}{/if}">
	                	<span class="help-block">组团付款后底部按扭邀请好友的提示信息，如:邀请好友参加</span>
	                </div>
	            </div>
	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">单买邀请好友</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="例如:邀请好友参加" name="lablegspy"  value="{if empty($config['lablegspy'])}邀请好友参加{else}{$config['lablegspy']}{/if}">
	                	<span class="help-block">单独购买付款后底部按扭邀请好友的提示信息，如:邀请好友参加</span>
	                </div>
	            </div>
	             <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">组团成功</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="例如:恭喜您组团成功" name="lablesuccess"  value="{if empty($config['lablesuccess'])}恭喜您组团成功{else}{$config['lablesuccess']}{/if}">
	                	<span class="help-block">组建的团人数达到设置数时的成功提示信息，如:恭喜您组团成功</span>
	                </div>
	            </div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">弹窗中提示</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isshowtips" value="0" {if $config['isshowtips']==0} checked="checked"{/if} type="radio"> 显示
						</label>
						<label class="radio-inline">
							<input name="isshowtips" value="1" {if $config['isshowtips']==1} checked="checked"{/if} type="radio"> 不显示
						</label>
					</div>
				</div>

	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">弹窗中单独购买提示</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="为空为默认值" name="dandutips"  value="{$config['dandutips']}">
	                	<span class="help-block">报名时出来的弹窗中单独购买提示,系统会有默认值</span>
	                </div>
	            </div>
	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">弹窗中拼团购买提示{if $system['ruanjian'] == '4'}①{/if}</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="为空为默认值" name="pintuantips"  value="{$config['pintuantips']}">
	                	<span class="help-block">报名时出来的弹窗中拼团购买提示,默认值:几人拼团多少钱</span>
	                	<span class="help-block">线上组团的活动,可修改为:**千人团节等促销信息</span>
	                </div>
	            </div>
	            {if $system['ruanjian'] == '4'}
	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">弹窗中拼团购买提示②</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="为空为默认值" name="pintuantips2"  value="{$config['pintuantips2']}">
	                </div>
	            </div>
	            {/if}
	            <div class="form-group">
	                <label class="col-sm-2 col-xs-12 control-label">活动限购提示</label>
	                <div class="col-sm-8 col-xs-12">
	                    <input type="text" class="form-control"  placeholder="为空为默认值" name="renshutips"  value="{$config['renshutips']}">
	                	<span class="help-block">限量#renshu个名额，已报名#baoming人</span>
	                	<span class="help-block">限量#renshu个名额，还剩余#shengyu个名额</span>
	                </div>
	            </div>
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">底部按扭颜色</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部按扭配色</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="buttontyle" value="0" {if $config['buttontyle']==0} checked="checked"{/if} type="radio"> 自定义
						</label>					
						<label class="radio-inline">
							<input name="buttontyle" value="1" {if $config['buttontyle']==1} checked="checked"{/if} type="radio"> 经典蓝
						</label>
						<label class="radio-inline">
							<input name="buttontyle" value="2" {if $config['buttontyle']==2} checked="checked"{/if} type="radio"> 拼多多红
						</label>
						<label class="radio-inline">
							<input name="buttontyle" value="3" {if $config['buttontyle']==3} checked="checked"{/if} type="radio"> 京东红
						</label>
					</div>
				</div>
				{if $system['ruanjian']==2}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">按扭渐变颜色1</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorhead',$config['formcolorhead']);}
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorlefttext',$config['formcolorlefttext']);}
						<span class="help-block">左侧按扭文字颜色（无效）</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">按扭渐变颜色2</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolortop',$config['formcolortop']);}
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorrighttext',$config['formcolorrighttext']);}
						<span class="help-block">按扭文字颜色</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">时间头像底色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorcenter',$config['formcolorcenter']);}
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorcentertext',$config['formcolorcentertext']);}
						<span class="help-block">中间按扭文字颜色(无效)</span>
					</div>
				</div>
				{else}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">左侧按扭颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorhead',$config['formcolorhead']);}
						<span class="help-block">左侧按扭与表单浅色部分的背景色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorlefttext',$config['formcolorlefttext']);}
						<span class="help-block">左侧按扭文字颜色</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">中间按扭颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorcenter',$config['formcolorcenter']);}
						<span class="help-block">中间按扭表单浅色部分的背景色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorcentertext',$config['formcolorcentertext']);}
						<span class="help-block">中间按扭文字颜色</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">右侧按扭颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolortop',$config['formcolortop']);}
						<span class="help-block">右侧按扭与表单深色部分的背景色</span>
					</div>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('formcolorrighttext',$config['formcolorrighttext']);}
						<span class="help-block">右侧按扭文字颜色</span>
					</div>
				</div>
				{/if}
			</div>
			<div class="panel-footer">弹出的提示窗口颜色与右侧按扭颜色一致</div>
		</div>
	</div>
	{/if}
	<div class="tab-pane" id="weituanset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">在线报名</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">顶部背景色</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_color('color',$config['color']);}
						<span class="help-block">粉丝列表倒计时的背景色 例如:#189ab2</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">拼团背景色</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_color('ingcolor',$config['ingcolor']);}
						<span class="help-block">正在拼团的背景色例如:#F0373D</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">成团背景色</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_color('successcolor',$config['successcolor']);}
						<span class="help-block">拼团成功的背景色例如:#0bb20c</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">佣金背景色</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_color('commcolor',$config['commcolor']);}
						<span class="help-block">拥挤记录列表背景色 例如:#60aef9</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">客服和定单图标</label>
					<div class="col-sm-3 col-xs-4">
						{php echo view_form_field_image('kficon',$config['kficon']);}
						<span class="help-block">右下角【客服】图标 尺寸48*48px</span>
					</div>
					<div class="col-sm-3 col-xs-4">
						{php echo view_form_field_image('ordericon',$config['ordericon']);}
						<span class="help-block">右下角【定单】图标尺寸48*48px</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">海报图标</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('postericon',$config['postericon']);}
						<span class="help-block">页面右下角海报图标，不启用海报不显示</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">提交按钮文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="submittxt"  value="{$config['submittxt']}">
						<span class="help-block" style="color: red;">提交按钮展示信息，例如：点击支付10元诚意金报名,注意：若团长和团员支付金额不一致，就不用带金额，以免用户误会</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">展示</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isshow" value="0" {if $config['isshow']==0} checked="checked"{/if} type="radio"> 暂停
						</label>
						<label class="radio-inline">
							<input name="isshow" value="1" {if $config['isshow']==1} checked="checked"{/if} type="radio"> 启用
						</label>
						<span class="help-block">底部的状态栏模块是否一直展示，不收起【普通模式下，多规格样式一直展开张图】</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">背景色</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_color('formcolor',$config['formcolor']);}
						<span class="help-block">表单背景色 例如:#189ab2，避免使用白色</span>
					</div>
				</div>
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">在线组团</div>
			<div class="panel-body" style="">
				<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">活动未开始</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="例如:活动已结束" name="lableunbegin"  value="{if empty($config['lableunbegin'])}活动尚未开始{else}{$config['lableunbegin']}{/if}">
                    	<span class="help-block">活动未开始时的展示提示信息，如:活动尚未开始</span>
                    </div>
                </div>
     			<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">活动结束</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="例如:活动已结束" name="lableend"  value="{if empty($config['lableend'])}活动已结束{else}{$config['lableend']}{/if}">
                    	<span class="help-block">活动结束时的展示提示信息，如:活动已结束</span>
                    </div>
                </div>
				<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">创建新团1</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="例如:我要开团" name="lablegroup"  value="{if empty($config['lablegroup'])}我要开团{else}{$config['lablegroup']}{/if}">
                    	<span class="help-block">粉丝直接进入活动页面时，想创建自己的团提示信息，如:我要开团</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">创建新团2</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="例如:成为团长" name="lablepygroup"  value="{if empty($config['lablepygroup'])}成为团长{else}{$config['lablepygroup']}{/if}">
                    	<span class="help-block">粉丝打开好友的活动页面时，想创建自己的团提示信息，如:成为团长</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">参加拼团</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="例如:加入TA的团" name="lablecjgroup"  value="{if empty($config['lablecjgroup'])}加入TA的团{else}{$config['lablecjgroup']}{/if}">
                    	<span class="help-block">粉丝想参加好友已经新建好的团的提示信息，如:加入TA的团</span>
                    </div>
                </div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">继续开团</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="例如:继续开团" name="lablegoon"  value="{if empty($config['lablegoon'])}继续开团{else}{$config['lablegoon']}{/if}">
					<span class="help-block">若系统选项开启【继续开团】之后，此处有效</span>
				</div>
			</div>
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">其它设置</div>
			<div class="panel-body" style="">

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">头部样式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="headstyle" value="0" {if $config['headstyle']==0} checked="checked"{/if} type="radio"> 默认滚动
						</label>
						<label class="radio-inline">
							<input name="headstyle" value="1" {if $config['headstyle']==1} checked="checked"{/if} type="radio"> 简约列表
						</label>
						<span class="help-block" style="color: red;">头部海报下方的参团用户列表和倒计时的展示样式</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">继续开团</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isgoon" value="0" {if $config['isgoon']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="isgoon" value="1" {if $config['isgoon']==1} checked="checked"{/if} type="radio"> 开启
						</label>
						<span class="help-block">团长拼团成功之后，是否可以继续开团，默认关闭 只可做一个团长</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">最近的团样式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="recentstyle" value="0" {if $config['recentstyle']==0} checked="checked"{/if} type="radio"> 默认
						</label>
						<label class="radio-inline">
							<input name="recentstyle" value="1" {if $config['recentstyle']==1} checked="checked"{/if} type="radio"> 简约
						</label>
						<span class="help-block">最近的团展示的样式</span>
					</div>
				</div>
	                <div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">开启评论</label>
						 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isreply" value="0" {if $config['isreply']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="isreply" value="1" {if $config['isreply']==1} checked="checked"{/if} type="radio"> 开启
								</label>
								<span class="help-block">开启底部评论功能</span>
						</div>
	                </div>
	                 <div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">开启审核</label>
						  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isaudit" value="0" {if $config['isaudit']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="isaudit" value="1" {if $config['isaudit']==1} checked="checked"{/if} type="radio"> 开启
								</label>
								<span class="help-block">评论需要审核才显示</span>
						</div>
	                </div> 


	                <div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">团长参与</label>
						 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="istzcy" value="0" {if $config['istzcy']==0} checked="checked"{/if} type="radio"> 关闭
							</label>
							<label class="radio-inline">
								<input name="istzcy" value="1" {if $config['istzcy']==1} checked="checked"{/if} type="radio"> 开启
							</label>
							 <span class="help-block">允许团长去参加其他人的团（成为对方团员）</span>
						</div>
	                </div>
	                <div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">团员参与</label>
						 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="istycy" value="0" {if $config['istycy']==0} checked="checked"{/if} type="radio"> 关闭
							</label>
							<label class="radio-inline">
								<input name="istycy" value="1" {if $config['istycy']==1} checked="checked"{/if} type="radio"> 开启
							</label>
							 <span class="help-block">允许团员去参加其他人的团，若关闭表示团员只能参加一个团</span>
						</div>
	                </div>
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">芸众会员</label>
						<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isyzmember" value="0" {if $config['isyzmember']==0} checked="checked"{/if} type="radio"> 关闭
							</label>
							<label class="radio-inline">
								<input name="isyzmember" value="1" {if $config['isyzmember']==1} checked="checked"{/if} type="radio"> 开启
							</label>
							<span class="help-block">已打通芸众的分销上下级锁定，开启后支持；上下级关系就是：新用户点击老用户分享的此活动链接时，芸众那边老用户就是新用户的上级。</span>
						</div>
					</div>
			</div>
		</div>
	</div>
	<div class="tab-pane " id="fanpaiset">

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">翻牌参数</div>
			<div class="panel-body" style="">

                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">选择抽奖分组</label>
                    <div class="col-sm-8 col-xs-12">
                        <select class="form-control" name="fanpaigroupid">
                        <option value="0">不使用翻牌抽奖</option>
                   		{loop $grouplist $row}
			         		<option value="{$row['id']}" {if $config['fanpaigroupid'] == $row['id'] }selected="selected"{/if}>{$row['groupname']}</option>
			       		{/loop}
			     		 </select>
                    	<span class="help-block">选择活动对应的翻牌抽奖分组 <a style="color: #ff0000" href="{php echo createWebUrl('giftgroup',array('op' => 'giftgroup','themeid'=>$themeid));}" target="_blank">点击设置抽奖分组</a></span>
                    	<span class="help-block">可在抽奖分组里设置中奖率，根据中奖率越高的客户首先抽中，中奖率相同的进行随机选择</span>
                    </div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">抽奖客户</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="fanpaifanwei" value="0" {if $config['fanpaifanwei']!=1} checked="checked"{/if} type="radio"> 报名客户
						</label>
						<label class="radio-inline">
							<input name="fanpaifanwei" value="1" {if $config['fanpaifanwei']==1} checked="checked"{/if} type="radio"> 未报名+报名客户
						</label>
					</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">是否显示中奖记录</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="fanpaijilu" value="0" {if $config['fanpaijilu']!=1} checked="checked"{/if} type="radio"> 显示
						</label>
						<label class="radio-inline">
							<input name="fanpaijilu" value="1" {if $config['fanpaijilu']==1} checked="checked"{/if} type="radio"> 不显示
						</label>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">翻牌图片</label>
					<div class="col-sm-8 col-xs-12">
					    {php echo view_form_field_image('fanpaiimg',$config['fanpaiimg']);}
						<span class="help-block">未翻牌时的图片，建议100*100像素</span>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">翻牌背景颜色</label>
					<div class="col-sm-5 col-xs-12">
						{php echo view_form_field_color('fanpaibgcolor',$config['fanpaibgcolor']);}
					</div>
				</div>

			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">抽奖规则 <a style="color: #b6b3b3" href="https://css2019.yixuan.net/2019css/fanpai/guize.jpg" target="_blank">点击查看参考规则</a></div>
			<div class="panel-body" style="">

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">抽奖机会上限</label>
					<div class="col-sm-3 col-xs-12">
						<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpailimit"  value="{$config['fanpailimit']}">
						<span class="input-group-addon">次</span>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">未报名可抽</label>
					<div class="col-sm-3 col-xs-12">
						<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpaiweibaoming"  value="{$config['fanpaiweibaoming']}">
						<span class="input-group-addon">次</span>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">成功报名加抽</label>
					<div class="col-sm-3 col-xs-12">
						<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpaibaoming"  value="{$config['fanpaibaoming']}">
						<span class="input-group-addon">次</span>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">邀请一位好友报名加抽</label>
					<div class="col-sm-3 col-xs-12">
						<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpaiyaoqing"  value="{$config['fanpaiyaoqing']}">
						<span class="input-group-addon">次</span>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">分享朋友圈加抽</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">第1天</span>
						<input type="text" class="form-control"  placeholder="" name="fanpai1day"  value="{$config['fanpai1day']}">
						<span class="input-group-addon">第2天</span>
						<input type="text" class="form-control"  placeholder="" name="fanpai3day"  value="{$config['fanpai2day']}">
						<span class="input-group-addon">第3天</span>
						<input type="text" class="form-control"  placeholder="" name="fanpai2day"  value="{$config['fanpai3day']}">
						<span class="input-group-addon"></span>
						<select class="form-control" name="fanpaipengyouquan">
			         		<option value="0" {if $config['fanpaipengyouquan'] == 0 }selected="selected"{/if}>未报名+报名客户</option>
			         		<option value="1" {if $config['fanpaipengyouquan'] == 1 }selected="selected"{/if}>报名客户</option>
			     		 </select>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- <div class="tab-pane " id="shareset"> -->
	<!-- </div> -->

	<div class="tab-pane " id="xcxset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">参数配置</div>
			<div class="panel-body" style="">
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">采集手机号</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="getmobile" value="0" {if $config['getmobile']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="getmobile" value="1" {if $config['getmobile']==1} checked="checked"{/if} type="radio"> 底部按扭获取
						</label>
						<label class="radio-inline">
							<input name="getmobile" value="2" {if $config['getmobile']==2} checked="checked"{/if} type="radio"> 弹窗登录获取(推荐)
						</label>
						<label class="radio-inline">
							<input name="getmobile" value="3" {if $config['getmobile']==3} checked="checked"{/if} type="radio"> 全屏登录获取
						</label>
					</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">采集头像+昵称</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="getavatar" value="0" {if $config['getavatar']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="getavatar" value="1" {if $config['getavatar']==1} checked="checked"{/if} type="radio"> 底部按扭获取(推荐)
						</label>
						<label class="radio-inline">
							<input name="getavatar" value="2" {if $config['getavatar']==2} checked="checked"{/if} type="radio"> 弹窗登录获取
						</label>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">授权弹窗LOGO</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('pinpailogo',$config['pinpailogo']);}
						<span class="help-block">尺寸要求128*128,为空时为显示我司LOGO</span>
					</div>
				</div>
				<!--
                //
                //默认为易宣LOGO,可更换为商家LOGO -->
			</div>
		</div>	
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">小程序底部按扭文字</div>
			<div class="panel-body" style="">				
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">单独购买文字</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="formtextleftxcx"  value="{if empty($config['formtextleftxcx'])}￥#dan#br原价购买{else}{$config['formtextleftxcx']}{/if}">
						<span class="help-block">如:原价购买 全款购买 老会员专享 注：类似单独购买是不可以用的</span>
						<span class="help-block">以下几个按扭文字支持通配符:#br带表换行 #fee表示报名费 #dan表示单买价 #tuan表示拼团价</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">没有团报名按扭</label>
					<div class="col-sm-8 col-xs-12">

						<div class="input-group">
							<span class="input-group-addon">{if $system['ruanjian'] == '4'}拼团①{else}发起拼团{/if}：</span>
							<input class="form-control" placeholder="默认为:立即报名" name="formtextcenterxcx" value="{if empty($config['formtextcenterxcx'])}￥#fee#br立即报名{else}{$config['formtextcenterxcx']}{/if}" type="text">{if $system['ruanjian'] == '4'}
							<span class="input-group-addon">拼团②</span>
							<input class="form-control" placeholder="设置拼团价②此处生效" name="formtextcenter2xcx" value="{if empty($config['formtextcenter2xcx'])}￥#tuan#br5人团{else}{$config['formtextcenter2xcx']}{/if}" type="text">{/if}
						</div>
						<span class="help-block">如:立即报名 立即抢购 我要参团  如:￥#fee#br立即报名 如:3人团#br我要参团</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">有组团报名按扭</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">新开团：</span>
							<input class="form-control" placeholder="默认为:我要开团" name="formtextcenternewxcx" value="{if empty($config['formtextcenternewxcx'])}￥#fee#br我要开团{else}{$config['formtextcenternewxcx']}{/if}" type="text">
							<span class="input-group-addon">加入团：</span>
							<input class="form-control" placeholder="默认为:加入TA的团" name="formtextrightxcx" value="{if empty($config['formtextrightxcx'])}￥#fee#br加入TA的团{else}{$config['formtextrightxcx']}{/if}" type="text">
						</div>
						<span class="help-block">如:加入TA的团  如:￥#fee#br加入TA的团 如:3人团#br加入TA的团</span>
						<span class="help-block">客户报名后分享给好友,好友打开会出现这2个按扭,一个是我要开团一个是加入TA的团</span>
					</div>
				</div>
			</div>
		</div>	
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">小程序分享</div>
			<div class="panel-body" style="">
				<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">未支付分享标题</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="sharetitlexcx"  value="{$config['sharetitlexcx']}">
                    	<span class="help-block">未报名的客户分享时的标题，NICK表示昵称,SHOPNAME表示商家名称,为空时为主标题</span>
                    </div>
                </div>
				<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">已支付分享标题</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="sharetitlexcx2"  value="{$config['sharetitlexcx2']}">
                    	<span class="help-block">支付的客户分享时的标题，NICK表示昵称，NAME表示姓名,SHOPNAME表示商家名称,为空时为主标题</span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">分享图片</label>
					<div class="col-sm-8 col-xs-12">
					    {php echo view_form_field_image('shareimgxcx',$config['shareimgxcx']);}
						<span class="help-block">分享图片，建议1000*800,为空时为活动主图，图片宽高比例为5:4</span>
					</div>
				</div>
			</div>
		</div>
	</div>

	{if $system['live']==1}
	<div class="tab-pane " id="live">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">小程序直播</div>
			<div class="panel-body">
				{if $_G['isSuperAdmin']}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">直播间ID</label>
					<div class="col-sm-8 col-xs-12">
						<input type="number" class="form-control" placeholder="" name="lid"
							value="{$config['livedata']['liveid']}">
						<span class="help-block">-1关闭直播 开启直播：有房间号填写房间号，没有房间内号填写0</span>
					</div>
				</div>
				{if $id>0}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">商品链接</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control" placeholder="" value="{$xcxurl}">
					</div>
				</div>
				{/if}
				{else}
				<input type="hidden" name="lid" value="{$config['livedata']['liveid']}">
				{/if}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">直播开始时间</label>
					<div class="col-sm-3 col-md-3 col-lg-3 col-xs-12">
						{php echo view_form_field_date('livetime',date("Y-m-d H:i:s", $config['livedata']['livetime']),true);}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">直播状态</label>
					<div class="col-sm-3 col-md-3 col-lg-3 col-xs-12">
						<select class="form-control" name="livestatus">
			         		<option value="102" {if $config['livedata']['livestatus'] == 102 }selected="selected"{/if}>102: 未开始</option>
			         		<option value="101" {if $config['livedata']['livestatus'] == 101 }selected="selected"{/if}>101: 直播中</option>
			         		<option value="103" {if $config['livedata']['livestatus'] == 103 }selected="selected"{/if}>103: 已结束</option>
			         		<option value="104" {if $config['livedata']['livestatus'] == 104 }selected="selected"{/if}>104: 禁播</option>
			         		<option value="105" {if $config['livedata']['livestatus'] == 105 }selected="selected"{/if}>105: 暂停中</option>
			         		<option value="106" {if $config['livedata']['livestatus'] == 106 }selected="selected"{/if}>106: 异常</option>
			         		<option value="107" {if $config['livedata']['livestatus'] == 107 }selected="selected"{/if}>107：已过期</option>
			     		 </select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">开启回放</label>
					<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
						<label class="radio-inline">
							<input name="relive" value="0" {if $config['livedata']['relive']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="relive" value="1" {if $config['livedata']['relive']==1} checked="checked"{/if} type="radio"> 开启
						</label>
					</div>
				</div>
				<!-- <input id="sendnotify" type="hidden" value="$config['livedata']['sendnotify']" name="sendnotify"/>
				{if $config['livedata']['liveid'] > -1}
				<div>
					<script>
						function sendNotify(){
							let notifyTemplate = "{php echo $system['livetemplate'];}"
							let selectWXapp = <?php echo $system['wxapp']?>;
							if(notifyTemplate == ""){
								alert("请前往参数设置>小程序 设置通知模版");
								return;
							}
							if(selectWXapp == "" || selectWXapp == 0){
								alert("请前往参数设置>小程序 绑定小程序");
								return;
							}
							$.ajax({
							url:"{php echo createWebUrl('theme');}",
							data:{
								op:"sendnotify",
								id:{$themeid}
							},
							success:function(e){
								document.getElementById('sendnotify').value = 1;
								alert("发送完成");
							}
						});
						}
					</script>
						<input type="button" value="发送通知" class="btn btn-primary col-lg-2" onclick="sendNotify()">
				</div>
				{/if} -->
			</div>
		</div>

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">直播预热图文内容{if $isold==true && !$_G['isSuperAdmin']}<span style="color: red">(已禁用,如需修改请联系工作人员)</span>{/if}</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">直播预热</label>
					<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
						<label class="radio-inline">
							<input name="yure" value="0" {if $config['livedata']['yure']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="yure" value="1" {if $config['livedata']['yure']==1} checked="checked"{/if} type="radio"> 开启
						</label>
						<span class="help-block">在直播前，通过下面的图文先引导客户进行订阅直播</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">直播预热标题</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control" placeholder="" name="lname"
							value="{$config['livedata']['lname']}">
						<span class="help-block"></span>
					</div>
				</div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">直播预热主图</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_form_field_image('liveheadlogo',$config['liveheadlogo']);}
                       <span class="help-block">为空则为活动主图。</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">直播预热内容</label>
                    <div class="col-sm-8 col-xs-12">
                       {php echo view_ueditor('livecontent', $config['livecontent']);}
                       <span class="help-block">为空则为活动内容</span>
                    </div>
                </div>
            </div>        
		</div>

	</div>
		{/if}
	<div class="tab-pane" id="kmset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">卡密设置</div>
			<div class="panel-body" style="">
				<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">开启卡密</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="iscode" value="0" {if $config['iscode']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="iscode" value="1" {if $config['iscode']==1} checked="checked"{/if} type="radio"> 开启
					</label>
					<span class="help-block" style="color: red;">开启后支付参与活动的用户会得到一组卡密（需提前导入），注意：团长在拼团成功后才可以获取</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">卡号别称</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="例如:卡号" name="code_title"  value="{if empty($config['code_title'])}卡号{else}{$config['code_title']}{/if}">
					<span class="help-block">必填</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">密码别称</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="例如:密码" name="code_pwd"  value="{$config['code_pwd']}">
					<span class="help-block">选填</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">提示别称</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="例如:小贴士" name="code_tips"  value="{$config['code_tips']}">
					<span class="help-block">选填</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">进行中别称</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="例如:未开奖" name="code_ing"  value="{$config['code_ing']}">
					<span class="help-block">选填</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">结束后别称</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="例如:已开奖" name="code_end"  value="{$config['code_end']}">
					<span class="help-block">选填</span>
				</div>
			</div>
			</div>
		</div>
	</div>
	<div class="tab-pane" id="formset">
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">表单设置: 默认只收集用户姓名和电话，可以自定义增加【文本信息】【下拉菜单信息】【时间日期选择】</div>
			<div class="panel-body" style="">

				<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">姓名别名</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="nametext"  value="{$config['nametext']}">
                    	<span class="help-block">默认为[姓名],可以任意修改,如改成[宝宝姓名]</span>
                    </div>
                </div>
				<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">手机号别名</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="mobiletext"  value="{$config['mobiletext']}">
                    	<span class="help-block">默认为[手机号],可以任意修改,如改成[妈妈电话]</span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">时间日期</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<input type="text" class="form-control"  placeholder="" name="datetime"  value="{$config['datetime']}">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="datetimetype">
				         		<option value="0" {if $config['datetimetype'] == 0 }selected="selected"{/if}>日期</option>
				         		<option value="1" {if $config['datetimetype'] == 1 }selected="selected"{/if}>文本</option>
				         		<option value="2" {if $config['datetimetype'] == 2 }selected="selected"{/if}>数字</option>
				     		 </select>
						</div>
                		<span class="help-block">例如需要日期信息，此处填【**日期】，例如 预约日期，不需要地址信息此处就留空</span>
					</div>
				</div>

                {if ($system['softstyle']!=5 && $system['gift']!=1) }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">文本/选项①</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<input type="text" class="form-control"  placeholder="" name="address"  value="{$config['address']}">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="addresstype">
				         		<option value="0" {if $config['addresstype'] == 0 }selected="selected"{/if}>文本</option>
				         		<option value="1" {if $config['addresstype'] == 1 }selected="selected"{/if}>数字</option>
				         		<option value="2" {if $config['addresstype'] == 2 }selected="selected"{/if}>下拉菜单</option>
				     		 </select>
						</div>
                    	<span class="help-block">例如需要地址信息，此处填【**地址】，例如 您的地址，不需要地址信息此处就留空</span>
					</div>
				</div>
				{if $config['addresstype'] == 2 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label"></label>
					<div class="col-sm-8 col-xs-12">
						<div id="addressoptions">
							<div class="tpl">
								{if !empty($config['addressoptions'])}
									{loop $config['addressoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="addressoptions[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="deladdressoptions"><i class="fa fa-times"></i></a></span>
										</div>
									{/loop}
								{else}
									<div class="input-group">
										<span class="input-group-addon">选项名称</span>
										<input type="text" name="addressoptions[]" class="form-control" placeholder="选项名称">
										<span class="input-group-addon"><a href="javascript:;" class="deladdressoptions"><i  class="fa fa-times"></i></a></span>
									</div>
								{/if}
							</div>
							<a href="javascript:;" class="addaddressoptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
						</div>
					</div>
				</div>
				{/if}

                {/if}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">文本/选项②</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
							<input type="text" class="form-control"  placeholder="" name="shops"  value="{$config['shops']}">
							<span class="input-group-addon">模式</span>
							<select class="form-control" name="shopstype">
				         		<option value="0" {if $config['shopstype'] == 0 }selected="selected"{/if}>下拉菜单</option>
				         		<option value="1" {if $config['shopstype'] == 1 }selected="selected"{/if}>文本</option>
				         		<option value="2" {if $config['shopstype'] == 2 }selected="selected"{/if}>数字</option>
				         		<option value="3" {if $config['shopstype'] == 3 }selected="selected"{/if}>单选</option>
				         		<option value="4" {if $config['shopstype'] == 4 }selected="selected"{/if}>多选</option>
				         		<option value="5" {if $config['shopstype'] == 5 || $config['shopstype5'] == 1} selected="selected"{/if}>门店多选</option>
				     		 </select>
						</div>
                    	<span class="help-block">粉丝参加时默认提供姓名和电话的表单，如果需要下拉菜单类型的选项，例如【选择拍摄类型】【选择性别】【选择年级】，不需要则此处就留空；门店多选需要提交后，方可更新商家。</span>
					</div>
				</div>
				{if $config['shopstype'] != 1 && $config['shopstype'] != 2 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label"></label>
					<div class="col-sm-8 col-xs-12">
						<div id="options">
							<div class="tpl">
								{if !empty($config['options'])}
									{loop $config['options'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="options[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delOptions"><i class="fa fa-times"></i></a></span>
										</div>
									{/loop}
								{else}
									<div class="input-group">
										<span class="input-group-addon">选项名称</span>
										<input type="text" name="options[]" class="form-control" placeholder="选项名称">
										<span class="input-group-addon"><a href="javascript:;" class="delOptions"><i  class="fa fa-times"></i></a></span>
									</div>
								{/if}
							</div>
							<a href="javascript:;" class="addOptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
						</div>
					</div>
				</div>
				{/if}
				{if $config['shopstype'] == 4 }
				<div class="form-group">
					<label class="col-sm-1 col-xs-12 control-label"></label>
					<label class="col-sm-2 col-xs-12 control-label">多选配置</label>
					<div class="col-sm-7 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">最少</span>
							<input type="text" class="form-control"  placeholder="" name="shopsmin"  value="{$config['shopsmin']}">
							<span class="input-group-addon">最多</span>
							<input type="text" class="form-control"  placeholder="" name="shopsmax"  value="{$config['shopsmax']}">
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-1 col-xs-12 control-label"></label>
					<label class="col-sm-2 col-xs-12 control-label">固定选项</label>
					<div class="col-sm-7 col-xs-12">
						<div id="gudingoptions">
							<div class="tpl">
								{if !empty($config['gudingoptions'])}
									{loop $config['gudingoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="gudingoptions[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions"><i class="fa fa-times"></i></a></span>
										</div>
									{/loop}
								{else}
									<div class="input-group">
										<span class="input-group-addon">选项名称</span>
										<input type="text" name="gudingoptions[]" class="form-control" placeholder="选项名称">
										<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions"><i  class="fa fa-times"></i></a></span>
									</div>
								{/if}
							</div>
							<a href="javascript:;" class="addgudingOptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加固定选项</a>
						</div>
					</div>
				</div>
				{/if}
				<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">协议条款</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="xieyi"  value="{$config['xieyi']}">
                    	<span class="help-block">例如:已知晓本定单不退不换 客户只有勾选才可以付款</span>
                    </div>
                </div>

			</div>
		</div>
		{if $system['gift']==1}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">选择礼品/商家</div>
			<div class="panel-body" style="">
				<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">提示信息</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="address"  value="{$config['address']}">
                    	<span class="help-block">活动礼品、活动商家、喜欢的商家</span>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">选择分组</label>
                    <div class="col-sm-8 col-xs-12">
                        <select class="form-control" name="giftgroupid">
                        <option value="0">不使用支付礼品</option>
                   		{loop $grouplist $row}
			         		<option value="{$theme['id']}" {if $config['giftgroupid'] == $row['id'] }selected="selected"{/if}>{$row['groupname']}</option>
			       		{/loop}
			     		 </select>
                    	<span class="help-block">选择主题活动对应的礼品分组 <a style="color: #ff0000" href="{php echo createWebUrl('giftgroup',array('op' => 'giftgroup','themeid'=>$themeid));}" target="_blank">点击设置礼品或商家</a></span>
                    </div>
                </div>
                <div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">支付模式</label>
					<div class="col-sm-8 col-xs-12">
						<label class="radio-inline">
							<input type="radio" name="typeid" value="0" {if $config['typeid']== 0 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
							任选
						</label>
						<label class="radio-inline">
							<input type="radio" name="typeid" value="1" {if $config['typeid']== 1 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
							商城(临时无效)
						</label>
						<span class="help-block">任选模式使用固定支付金额，商城模式则根据选择的商品总额进行支付</span>
					</div>
				</div>  
                                                           
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">礼品/商家个数</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" readonly="readonly"  value="{$config['gifttypesum']}">
                    	<span class="help-block">本次活动提供的礼品种类总数N，选择礼品分组然后保存之后系统将自动获取</span>
                    </div>
                </div>                  
                <div class="form-group">
	                	<label class="col-sm-2 col-xs-12 control-label">可选个数</label>
						 <div class="col-sm-6 col-xs-6">
	                       <div class="input-group">
								<input class="form-control" placeholder="例如:1" name="gifttypeselect1" value="{$config['gifttypeselect1']}" type="text">
								<span class="input-group-addon" id="basic-addon2"> - </span>
								<input class="form-control" placeholder="例如:2" name="gifttypeselect2" value="{$config['gifttypeselect2']}" type="text">
							</div>
							<span class="help-block" >【任选模式】粉丝可选1~N种，表示粉丝必须选够设置数量的礼品才可支付</span>
	                    </div>

                </div>

                <div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">显示位置</label>
					<div class="col-sm-8 col-xs-12">
						<label class="radio-inline">
							<input type="radio" name="showgift" value="0" {if $config['showgift']== 0 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
							活动内容上方
						</label>
						<label class="radio-inline">
							<input type="radio" name="showgift" value="1" {if $config['showgift']== 1 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
							活动内容下方
						</label>
						<span class="help-block">任选模式使用固定支付金额，商城模式则根据选择的商品总额进行支付</span>
					</div>
				</div>
			</div>
		</div>
		{/if}
		{if $system['isform']==1}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">表单页面设置</div>
			<div class="panel-body" style="">
				<div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">表单页面标题</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="formtitle"  value="{$config['formtitle']}">
                    	<span class="help-block">为空显示此活动的主标题</span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">顶部图片</label>
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('formimg',$config['formimg']);}
                    	<span class="help-block">表单页面顶部的图，弹窗显示，尺寸：高550*宽1080</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">提交后的操作</label>
					<div class="col-sm-10 col-xs-12">
						<select class="form-control" name="formtourl">
			         		<option value="0" {if $config['formtourl'] == "0" }selected="selected"{/if}>提交成功</option>
			         		{if count($themelist)>0 }
		                   		{loop $themelist $row}
					         		<option value="{$row['id']}" {if $config['formtourl'] == $row['id'] }selected="selected"{/if}>跳转到：{$row['id']} - {php echo mb_substr($row['title'],0,25,'utf-8');}</option>
					       		{/loop}
				       		{/if}
				       		{if empty($id)}
			         		<option value="-1" >跳转到：当前活动</option>
				       		{/if}
			     		 </select>
						<span class="help-block">客户提交完资料后，是提示提交成功停留在本页，还是跳转到的活动页面</span>
					</div>
				</div>

			</div>
		</div>
		{/if}
	</div>

	<div class="tab-pane" id="mobileset">

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">手机管理端设置</div>
			<div class="panel-body" style="">
                {if $system['ruanjian']!=3}
					<div class="form-group">
	                     <label class="col-sm-2 col-xs-12 control-label">添加员工密码</label>
	                    <div class="col-sm-8 col-xs-12">
	                        <input type="text" class="form-control"  placeholder="" name="workerpass"  value="{if empty($config['workerpass'])}{php echo 30000+rand(0,9999);}{else}{$config['workerpass']}{/if}">
	                    	<span class="help-block">扫码添加员工,需要输入</span>
	                    </div>
	                </div>
                {/if}
				<!-- <div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">每天结帐时间</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="todaytime"  value="{$config['todaytime']}">
                    	<span class="help-block">每天结算时间为整点0-23,如设置18,18点以后定单全算第二天业绩</span>
                    </div>
                </div> -->
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">员工修改客户定单</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="iseditorder" value="0" {if $config['iseditorder']==0} checked="checked"{/if} type="radio"> 不可修改
							</label>
							<label class="radio-inline">
								<input name="iseditorder" value="1" {if $config['iseditorder']==1} checked="checked"{/if} type="radio"> 可修改
							</label>
							<span class="help-block">默认员工可以手机管理端修改客户报名信息,以及更改所属团队,会员卡余额等</span>
						</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">员工查团队日报</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isreport" value="0" {if $config['isreport']==0} checked="checked"{/if} type="radio"> 不可查看
							</label>
							<label class="radio-inline">
								<input name="isreport" value="1" {if $config['isreport']==1} checked="checked"{/if} type="radio"> 可查看
							</label>
							<span class="help-block">员工只可查看自个的日报,这里设置是否可看到团队及公司的每日报表</span>
						</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">员工查团队排名</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isrank" value="0" {if $config['isrank']==0} checked="checked"{/if} type="radio"> 不可查看
						</label>
						<label class="radio-inline">
							<input name="isrank" value="1" {if $config['isrank']==1} checked="checked"{/if} type="radio"> 可查看
						</label>
						<span class="help-block">管理员可查看排名，员工是否可看到团队的业绩排名</span>
					</div>
                </div>
                {if $system['ruanjian']==3 }
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">商家管理员查联盟商排名</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isshoprank" value="0" {if $config['isshoprank']==0} checked="checked"{/if} type="radio"> 不可查看
						</label>
						<label class="radio-inline">
							<input name="isshoprank" value="1" {if $config['isshoprank']==1} checked="checked"{/if} type="radio"> 可查看
						</label>
						<span class="help-block">超级管理员可查联盟商排名，商家管理员是否可查，普通员工不可查</span>
					</div>
                </div>
                {/if}            
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">线下录入</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isxianxia" value="0" {if $config['isxianxia']==0} checked="checked"{/if} type="radio"> 不可录入
							</label>
							<label class="radio-inline">
								<input name="isxianxia" value="1" {if $config['isxianxia']==1} checked="checked"{/if} type="radio"> 可录入
							</label>
							<span class="help-block">当客户不可以在线支付时，员工可进行线下录入，由此客户一样可以线上组团</span>
						</div>
                </div>   
                <!-- <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">显示线下录入</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isshowxianxia" value="0" {if $config['isshowxianxia']==0} checked="checked"{/if} type="radio"> 自动
							</label>
							<label class="radio-inline">
								<input name="isshowxianxia" value="1" {if $config['isshowxianxia']==1} checked="checked"{/if} type="radio"> 显示
							</label>
							<span class="help-block">自动:线下录入关闭手机端则不显示,开启则手机端显示;显示:不论线下功能是否开启一直显示</span>
						</div>
                </div> -->

                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">交易凭证样式</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="examplestyle" value="0" {if $config['examplestyle']==0} checked="checked"{/if} type="radio"> 系统红包
							</label>
							<label class="radio-inline">
								<input name="examplestyle" value="1" {if $config['examplestyle']==1} checked="checked"{/if} type="radio"> 客户支付凭证
							</label>
							<span class="help-block">系统红包：为易宣开发的客户见证，用于朋友圈推广，好处是可以显示二维码。客户支付凭证：客户支付完后弹出的支付凭证，更有说服力，但无二维码。</span>
						</div>
                </div>
                {if $config['examplestyle']==0}
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">交易凭证二维码</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isexampleqr" value="0" {if $config['isexampleqr']==0} checked="checked"{/if} type="radio"> H5不显示+小程序显示
							</label>
							<label class="radio-inline">
								<input name="isexampleqr" value="1" {if $config['isexampleqr']==1} checked="checked"{/if} type="radio"> 全显示
							</label>
							<label class="radio-inline">
								<input name="isexampleqr" value="2" {if $config['isexampleqr']==2} checked="checked"{/if} type="radio"> 全不显示
							</label>
							<span class="help-block">交易凭证(客户见证/成交记录)的图片上显示二维码,如遇客户投诉可能会出现发到朋友圈不可见,如遇到关闭二维码即可；仅限交易凭证样式-统红包使用</span>
						</div>
                </div>
                {/if}
			</div>
		</div>
	</div>
	<div class="tab-pane" id="otherset">

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">其它设置</div>
			<div class="panel-body" style="">
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">链接黑名单</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="blacklist"  value="{$theme['blacklist']}">
						<span class="help-block">在黑名单的微信，将无法打开活动链接。比如我们的同行，只要微信昵称中包上述关键字，将会跳转到百度页面</span>
						<span class="help-block">用“|”分格每一个关键字，例如：百度|腾讯|13512341234|幸福来敲门</span>
						<span class="help-block">如想恢复可在某一个用户，可点粉丝->黑名单-开启，恢复。</span>
					</div>
				</div>
				{if $_G['isSuperAdmin']}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">链接白名单</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="whitelist"  value="{$theme['whitelist']}">
						<span class="help-block">将默认的系统黑名单中的转为白名单。</span>
					</div>
				</div>
				{/if}

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">链接限制地区访问</label>
					<div class="col-sm-8 col-xs-12">
						<div class="input-group">
			              <span class="input-group-addon">城市：</span>
			              <input class="form-control" type="text" value="{$config['viewcity']}" class="span2" name="viewcity">
			              <span class="input-group-addon">白名单：</span>
			              <input class="form-control" type="text" value="{$config['viewcitywhitelist']}" class="span2" name="viewcitywhitelist">
			            </div>
			            <span class="help-block" >为空则不限制地区。例如：山东,青岛等。可以支持省市县区；多个地区用“,”分割，根据IP来判断，建议精确到省</span>
						<span class="help-block">白名单：用“|”分格每一个关键字，输入昵称中的部分关键字</span>
					</div>
				</div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">员工可以支付</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isworkerpay" value="0" {if $config['isworkerpay']==0} checked="checked"{/if} type="radio"> 不可支付
							</label>
							<label class="radio-inline">
								<input name="isworkerpay" value="1" {if $config['isworkerpay']==1} checked="checked"{/if} type="radio"> 可支付
							</label>
							<span class="help-block">默认为员工不可以支付;若员工支付,分享出去别人是不可以加入他的团;分销红包会给到员工本人,业绩算员工本人;</span>
						</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">商家核销</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="ishexiao" value="0" {if $config['ishexiao']==0} checked="checked"{/if} type="radio"> 关闭
							</label>
							<label class="radio-inline">
								<input name="ishexiao" value="1" {if $config['ishexiao']==1} checked="checked"{/if} type="radio"> 开启
							</label>
							<span class="help-block">核销方法:客户点击底部团购号,出现二维码,员工扫一下即可核销</span>
						</div>
                </div>
                {if $config['maxcountall']>1 }
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">团长排行榜</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">显示前</span>
						<input type="text" class="form-control"  placeholder="" name="tuanrank"  value="{$config['tuanrank']}">
						<span class="input-group-addon">名</span>
						</div>
					</div>
					<span class="help-block">值为0,不开启团长排行榜</span>
				</div>
				{/if}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">粉丝推荐成交榜</label>
					<div class="col-sm-5 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">显示前</span>
						<input type="text" class="form-control"  placeholder="" name="fansrank"  value="{$config['fansrank']}">
						<span class="input-group-addon">名</span>
						</div>
					</div>
					<span class="help-block">值为0,不开启粉丝推荐成交榜</span>
				</div>
				<div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">推荐排行榜中包含</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isfansrankshowworker" value="0" {if $config['isfansrankshowworker']==0} checked="checked"{/if} type="radio"> 包含内部员工
							</label>
							<label class="radio-inline">
								<input name="isfansrankshowworker" value="1" {if $config['isfansrankshowworker']==1} checked="checked"{/if} type="radio"> 不包含
							</label>
							<span class="help-block">也可以在粉丝->虚拟数->修改某一个粉丝的昵称、推荐数</span>
						</div>
                </div>
                {if $system['ruanjian']==3 }
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">显示所有链接数据</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="showalldata" value="0" {if $config['showalldata']==0} checked="checked"{/if} type="radio"> 不显示
							</label>
							<label class="radio-inline">
								<input name="showalldata" value="1" {if $config['showalldata']==1} checked="checked"{/if} type="radio"> 显示
							</label>
							<span class="help-block">在此链接中显示所有链接数据，即将所有链接的报名数，浏览量叠加到此链接的前台显示</span>
						</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">首页商家排序</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="homeshowshop" value="0" {if $config['homeshowshop']==0} checked="checked"{/if} type="radio"> 谁转发谁在前+后台设置排名
							</label>
							<label class="radio-inline">
								<input name="homeshowshop" value="1" {if $config['homeshowshop']==1} checked="checked"{/if} type="radio"> 谁转发谁在前+销售量排名
							</label>
						</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">活动主商家</label>
					  <div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
	                        <select class="form-control" name="showshop">
	                        <option value="0">所有商家，且所有商家均可管理</option>
	                   		{loop $shoplist $row}
				         		<option value="{$row['id']}" {if $config['showshop'] == $row['id'] }selected="selected"{/if}>{$row['name']}</option>
				       		{/loop}
				     		 </select>
							<span class="help-block">选中其中一个商家后，此链接其它商家只有核销权限，无投屏无员工管理等权限</span>
						</div>
                </div>
                {/if}
                {if $system['softstyle'] == '4'}
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">多商家异业联盟首页</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="duoshangjiashouye" value="0" {if $config['duoshangjiashouye']==0} checked="checked"{/if} type="radio"> LOGO+首图
							</label>
							<label class="radio-inline">
								<input name="duoshangjiashouye" value="1" {if $config['duoshangjiashouye']==1} checked="checked"{/if} type="radio"> 首图
							</label>
						</div>
                </div>

				<div class="form-group" >
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">多商家异业首页尺寸</label>
					<div class="col-md-5">
						<div class="input-group">
							<span class="input-group-addon">高度</span>
							<input type="text" class="form-control" value="{if empty($config['duoshangjiaheigh'])}260{else}{$config['duoshangjiaheigh']}{/if}" name="duoshangjiaheigh">
							<span class="input-group-addon">像素</span>
						</div>
					</div>
				</div>
                {/if}
				{if $system['ruanjian']!=1}
<!-- 				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">开团总数</label>
					<div class="col-sm-5 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="groupsum"  value="{$config['groupsum']}">
						<span class="help-block">活动中开团数量限制，超过数量则提示不能开团，如果不限制则设置数字0，默认0</span>
					</div>
				</div> -->

				<div class="form-group" >
					<label class="col-xs-12 col-sm-3 col-md-2 col-lg-2 control-label">组团限时(整数小时)</label>
					<div class="col-md-5">
						<div class="input-group">
							<span class="input-group-addon">限时</span>
							<input type="text" class="form-control" value="{$config['groupneedtime']}" name="groupneedtime">
							<span class="input-group-addon"> 自动成团剩余</span>
							<input type="text" class="form-control" value="{$config['groupautotime']}" name="groupautotime" placeholder="默认为不自动">
							<span class="input-group-addon">小时</span>
						</div>
					</div>
				</div>
				{/if}
			</div>
		</div>

		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">H5分享设置</div>
			<div class="panel-body" style="">
				<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">未支付分享标题</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="sharetitle1"  value="{$config['sharetitle1']}">
                    	<span class="help-block">未报名的客户分享时的标题，NICK表示昵称,SHOPNAME表示商家名称,为空时为主标题</span>
                    </div>
                </div>
				<div class="form-group">
                     <label class="col-sm-2 col-xs-12 control-label">已支付分享标题</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  placeholder="" name="sharetitle2"  value="{$config['sharetitle2']}">
                    	<span class="help-block">支付的客户分享时的标题，NICK表示昵称，NAME表示姓名,SHOPNAME表示商家名称,为空时为主标题</span>
                    </div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">标题中显示客服</label>
					 <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isshowkefu" value="0" {if $config['isshowkefu']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="isshowkefu" value="1" {if $config['isshowkefu']==1} checked="checked"{/if} type="radio"> 开启
						</label>
						 <span class="help-block">分享出去的链接,标题中显示客服信息</span>
					</div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">分享图标</label>
					<div class="col-sm-8 col-xs-12">
					    {php echo view_form_field_image('img',$theme['img']);}
						<span class="help-block">分享图标，建议100*100,为空时为活动主图</span>
					</div>
				</div>
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">界面样式</div>
			<div class="panel-body" style="">
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">开启弹幕</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="isdanmu" value="0" {if $config['isdanmu']==0} checked="checked"{/if} type="radio"> 关闭
							</label>
							<label class="radio-inline">
								<input name="isdanmu" value="1" {if $config['isdanmu']==1} checked="checked"{/if} type="radio"> 新样式
							</label>
							<label class="radio-inline">
								<input name="isdanmu" value="2" {if $config['isdanmu']==2} checked="checked"{/if} type="radio"> 老样式
							</label>
							<span class="help-block">点亮、开团、参团、奖励都会显示</span>
						</div>
                </div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">弹幕内容</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<div class="input-group">
						<span class="input-group-addon">点亮图标</span>
			                  <select class="form-control" name="danmu01">
		                          <option value="0" {if $config['danmu01']==0}selected="selected"{/if}>显示</option>
		                          <option value="1" {if $config['danmu01']==1}selected="selected"{/if} >不显示</option>
			                  </select>
						<span class="input-group-addon">分销红包</span>
			                  <select class="form-control" name="danmu02">
		                          <option value="0" {if $config['danmu02']==0}selected="selected"{/if}>显示</option>
		                          <option value="1" {if $config['danmu02']==1}selected="selected"{/if} >不显示</option>
			                  </select>
						<span class="input-group-addon">员工提成</span>
			                  <select class="form-control" name="danmu03">
		                          <option value="0" {if $config['danmu03']==0}selected="selected"{/if}>显示</option>
		                          <option value="1" {if $config['danmu03']==1}selected="selected"{/if} >不显示</option>
			                  </select>
						<span class="input-group-addon">裂变红包</span>
			                  <select class="form-control" name="danmu04">
		                          <option value="0" {if $config['danmu04']==0}selected="selected"{/if}>显示</option>
		                          <option value="1" {if $config['danmu04']==1}selected="selected"{/if} >不显示</option>
			                  </select>
						</div>
						</div>
                </div>
                {if $_G['companyname'] =='飞驰软件'}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">底部按扭样式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="fcfootmenu" value="0" {if $config['fcfootmenu']==0} checked="checked"{/if} type="radio"> 老样式
						</label>
						<label class="radio-inline">
							<input name="fcfootmenu" value="1" {if $config['fcfootmenu']==1} checked="checked"{/if} type="radio"> 新样式
						</label>
					</div>
				</div>
				{/if}
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">倒计时</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="istime" value="0" {if $config['istime']==0} checked="checked"{/if} type="radio"> 默认
						</label>
						<label class="radio-inline">
							<input name="istime" value="1" {if $config['istime']==1} checked="checked"{/if} type="radio"> 黑色倒计时
						</label>
						<label class="radio-inline">
							<input name="istime" value="10" {if $config['istime']==10} checked="checked"{/if} type="radio"> 不显示
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">报名数据+头像</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
               			 {if $system['ruanjian']==1}
						<label class="radio-inline">
							<input name="iswttouxiang" value="0" {if $config['iswttouxiang']==0} checked="checked"{/if} type="radio"> 滚动模式
						</label>
						<label class="radio-inline">
							<input name="iswttouxiang" value="1" {if $config['iswttouxiang']==1} checked="checked"{/if} type="radio"> 普通模式
						</label>
               			 {elseif $system['ruanjian']==2}
						<label class="radio-inline">
							<input name="iswttouxiang" value="0" {if $config['iswttouxiang']==0} checked="checked"{/if} type="radio"> 显示所有
						</label>
						<label class="radio-inline">
							<input name="iswttouxiang" value="1" {if $config['iswttouxiang']==1} checked="checked"{/if} type="radio"> 只显示浏览量+头像
						</label>
						{else}
						<label class="radio-inline">
							<input name="iswttouxiang" value="0" {if $config['iswttouxiang']==0} checked="checked"{/if} type="radio"> 显示
						</label>
						{/if}
						<label class="radio-inline">
							<input name="iswttouxiang" value="10" {if $config['iswttouxiang']==10} checked="checked"{/if} type="radio"> 不显示
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">隐藏客户姓名</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isshowname" value="0" {if $config['isshowname']==0} checked="checked"{/if} type="radio"> 关闭
						</label>
						<label class="radio-inline">
							<input name="isshowname" value="1" {if $config['isshowname']==1} checked="checked"{/if} type="radio"> 开启
						</label>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">交易凭证</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="showpayresult" value="0" {if $config['showpayresult']==0} checked="checked"{/if} type="radio"> 显示
						</label>
						<label class="radio-inline">
							<input name="showpayresult" value="1" {if $config['showpayresult']==1} checked="checked"{/if} type="radio"> 不显示
						</label>
						<span class="help-block" >客户付完款后，出现一个凭证，会有店内信息显示</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">支付后URL</label>
					<div class="col-sm-8 col-xs-12">
						<input type="text" class="form-control"  placeholder="" name="payedurl"  value="{$config['payedurl']}">
						<span class="help-block">支付后的跳转URL，不设置默认跳转到活动页面</span>
					</div>
				</div>
			</div>
		{if $_G['isSuperAdmin']}
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">高级功能：仅限易宣工作人员操作</div>
			<div class="panel-body" style="">
                 <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">公众平台变更</label>
                    <div class="col-sm-8 col-xs-12">
                        <select class="form-control" name="accountid">
                   		{loop $accountlist $row}
			         		<option value="{$row['uniacid']}" {if $theme['uniacid'] == $row['uniacid'] }selected="selected"{/if}>{$row['uniacid']} _ {$row['name']}</option>
			       		{/loop}
			     		 </select>
                    	<span class="help-block">活动启动后,严禁更改 <a href="#"
							onclick="drop_confirm('确定要删除吗?','{php echo createWebUrl($do,array('op'=>'deletenew','id'=>$theme['id']));}');"
							title="删除"> 删除此活动</a><a href="#"
							onclick="drop_confirm('确定要重置吗?','{php echo createWebUrl($do,array('op'=>'qrnew','id'=>$theme['id']));}');"
							title="删除"> 重新生成链接二维码</a></span>
                    </div>
                </div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">组团失败</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="isautorefund" value="0" {if $theme['isautorefund']==0} checked="checked"{/if} type="radio"> 不退款
						</label>
						<label class="radio-inline">
							<input name="isautorefund" value="1" {if $theme['isautorefund']==1} checked="checked"{/if} type="radio"> 开启自动退款
						</label>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">朋友圈被屏蔽</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="iswxshare" value="0" {if $config['iswxshare']==0} checked="checked"{/if} type="radio"> 未屏蔽
						</label>
						<label class="radio-inline">
							<input name="iswxshare" value="1" {if $config['iswxshare']==1} checked="checked"{/if} type="radio"> 
							已屏蔽
						</label>
					</div>
				</div>
                <div class="form-group">
                	<label class="col-sm-2 col-xs-12 control-label">无限次购买</label>
					  <div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
							<label class="radio-inline">
								<input name="wuxian" value="0" {if $config['wuxian']==0} checked="checked"{/if} type="radio"> 关闭
							</label>
							<label class="radio-inline">
								<input name="wuxian" value="1" {if $config['wuxian']==1} checked="checked"{/if} type="radio"> 开启
							</label>
							<span class="help-block">无限次购买:默认每个微信只可以买一次，如需多买请开启</span>
						</div>
                </div>  
				<div class="form-group">
					<label class="col-sm-2 col-xs-12 control-label">H5访问方式</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						<label class="radio-inline">
							<input name="weixinh5" value="0" {if $config['weixinh5']==0} checked="checked"{/if} type="radio"> 仅限微信
						</label>
						<label class="radio-inline">
							<input name="weixinh5" value="2" {if $config['weixinh5']==2} checked="checked"{/if} type="radio"> 不限制
						</label>
					</div>
				</div>
			</div>
		</div>
		{/if}

		</div>

		{if $_G['isSuperAdmin'] && ($theme['softqubanquan']==1 || $theme['softoem']==1)}
		<div class="panel panel-default" role="tabpanel" style="">
            <div class="panel-heading">版权信息</div>
            <div class="panel-body">
            	{if $theme['softqubanquan']==1 || $theme['softoem']==1}
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">版权信息</label>
                    <div class="col-sm-8 col-xs-12">
                      <label class="radio-inline">
                        <input type="radio" name="yixuanbanquan" id="inlineRadio1" value="0" {if $theme['yixuanbanquan'] != '1'}checked="checked"{/if}> 显示
                      </label>
                      <label class="radio-inline">
                        <input type="radio" name="yixuanbanquan" id="inlineRadio2" value="1" {if $theme['yixuanbanquan'] =='1'}checked="checked"{/if}> 不显示
                      </label>
                    </div>
                </div>
                {/if}
                {if $theme['softoem']==1}
               <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">链接底部提示信息</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="USERJISHU" value="{$theme['USERJISHU']}" class="form-control">
                        <span class="help-block">例如：技术支持：【{$_G['companyname']}】{$system['s']['yixuanphone']}</span>
                    </div>
              </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">链接URL</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="USERURL" value="{$theme['USERURL']}" class="form-control">
                        <span class="help-block">例如：tel:{$system['s']['yixuanphone']}</span>
                    </div>
              </div> 
               <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">公司简称</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="USERCOMPANYNAME" value="{$theme['USERCOMPANYNAME']}" class="form-control">
                        <span class="help-block">例如：{$_G['companyname']}</span>
                    </div>
              </div>     
               <div class="form-group">
                    <span class="help-block">常用配置：技术支持: <img src='https://img2019.yixuan.net/images/2/2019/05/OVvaM595adVA7A9j975Zj0R0ztvvaj.jpg/99.jpg' style="width: 16px" >江苏瑞博企划有限公司（代码复制下方）13851022212</span>
                    <span class="col-sm-12 col-xs-12 help-block"><xmp>技术支持: <img src='https://img2019.yixuan.net/images/2/2019/05/OVvaM595adVA7A9j975Zj0R0ztvvaj.jpg/99.jpg' style="width: 16px" >江苏瑞博企划有限公司</xmp></span>
              </div> 
              {/if} 
             </div>
		</div>
		{/if}
	</div>

	<div class="tab-pane" id="urlset">
        <div class="form-group"><!-- 
        	分别是白色，浅蓝色，深蓝色，绿色，黄色，红色，黑色，
			对应的class为btn,btn btn-primary,btn btn-info,btn btn-success,btn btn-warning,btn btn-danger,btn btn-inverse -->	
			{if $system['wxapp']==0 || $system['softmode']!=1 }
        	{if empty($theme['desc'])}
            <label class="btn col-lg-1"></label> <label class="btn btn-warning col-xs-12 col-sm-4 col-md-3 col-lg-2">副标题未设置</label> 
            {/if}
            {/if}
            
        	{if ($theme['status'])!=1}
            <label class="btn col-lg-1"></label> <label class="btn btn-warning col-xs-12 col-sm-4 col-md-3 col-lg-2">活动已停止</label> 
            {/if}
        	{if ($theme['endtime'] < TIMESTAMP)}
            <label class="btn col-lg-1"></label> <label class="btn btn-warning col-xs-12 col-sm-4 col-md-3 col-lg-2">活动时间已结束</label> 
            {/if}
        	{if empty($config['headlogo'])}
            <label class="btn col-lg-1"></label> <label class="btn btn-danger col-xs-12 col-sm-4 col-md-3 col-lg-2">活动主图未上传</label> 
            {/if}
        	{if empty($config['content'])}
            <label class="btn col-lg-1"></label> <label class="btn btn-danger col-xs-12 col-sm-4 col-md-3 col-lg-2">活动内容未上传</label> 
            {/if}
            {if empty($theme['mobile'])}
            <label class="btn col-lg-1"></label> <label class="btn btn-danger col-xs-12 col-sm-4 col-md-3 col-lg-2">客服电话未设置</label> 
            {/if}
            {if $system['fenxiao']==1 && empty($system['autored'])}
            <label class="btn col-lg-1"></label> <label class="btn btn-info col-xs-12 col-sm-4 col-md-3 col-lg-2">自动发红包未设置</label> 
            {/if}


        </div>
        {if !empty($system['appid']) }
			<div class="panel panel-default" role="tabpanel" style="">
				<div class="panel-heading">活动网址</div>
				<div class="panel-body" style="">
					{if $system['wxapp']==0 || $system['softmode']!=1 }
	                <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">H5主链接</label>
	                    <div class="col-sm-8 col-xs-12">
	                        <textarea type="textarea" class="form-control"  readonly="readonly" >{php echo substr(MODULE_NAME, -5);}活动网址：{php echo str_replace("http://","",$indexurl);}{if $theme['isautorefund']==0}&#13;可以用在公众平台文章阅读原文，群发软件群发等{else}&#13;特别提醒:已开通24小时不满团自动退款{/if}</textarea>
	                    </div>
	                </div>
					{/if}
        			{if $system['wxapp']!=0 && $system['softmode']!=0 }
	                <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">小程序路径</label>
	                    <div class="col-sm-8 col-xs-12">
	                        <input type="text" class="form-control"  readonly="readonly"  value="{$xcxurl}">
	                    </div>
	                </div>
        			{if $_G['username']=='benben'}
	                <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">小程序调试</label>
	                    <div class="col-sm-8 col-xs-12">
	                        <textarea  rows="1" type="textarea" class="form-control"  readonly="readonly" >{php echo 'scene="' . MODULE_NAME . '-'. $id.'-0-'.$theme['softkey'].'-0";';}</textarea>
	                    </div>
	                </div>
					{/if}
					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">二维码</label>
						<div class="col-sm-8 col-xs-12">
							{if !empty($config['indexurlxcx'])}
							<div class="col-sm-6" style="text-align: center;">
								<img style="width: 299px;" src="{$config['indexurlxcx']}"><br><br>活动二维码
							</div>
							{/if}
						</div>
					</div>
					{/if}
				</div>
			</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">添加员工二维码</div>
			<div class="panel-body" style="">
				{if empty($theme['softsn'])}
				<span class="help-block">软件未激活</span>
				{else}

       			{if !empty($addworkerurl)}
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">URL</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  readonly="readonly"  value="{$addworkerurl}">
                    </div>
                </div>
       			{/if}
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">二维码</label>
                    <div class="col-sm-8 col-xs-12">
                    	{if !empty($addworker_qrimg)}
                    	<div class="col-sm-6" style="text-align: center;"><img style="width: 299px;" src="{$addworker_qrimg}"><br><br>添加员工二维码

                    	</div>
                    	{/if}

                    	{if !empty($addworker_qrimgxcx)}
                    	<div class="col-sm-6" style="text-align: center;"><img style="width: 299px;" src="{$addworker_qrimgxcx}"><br><br>添加员工二维码

                    	</div>
                    	{/if}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label"></label>
                    <div class="col-sm-8 col-xs-12">
                        <span class="help-block">{if $system['ruanjian']!=3}您检查一下看有没有问题,如果没有问题,管理员(老师/老板/店长)先扫描这个二维码,输入管理密码({$system['adminpass']})设置好分队信息(可略过),然后把这个二维码发到内部群,让所有员工扫描二维码,输入添加员工密码({$config['workerpass']}),再输入姓名和电话,然后转发链接,这样就可以看到客户是哪个员工的业绩了.<br><br>
                        管理密码是:{$system['adminpass']} (拥有所有权限,可查看所有客资) <br>
                        员工密码是:{$config['workerpass']}(只可查看自己的客资)
                        {else}您检查一下看有没有问题,如果没有问题,各商家管理员(老板/店长)先扫描这个二维码,选择自己所在的企业,输入该企业的管理密码,设置好分队信息(可略过),然后把这个二维码发到内部群,让所有员工扫描二维码,选择自己的企业,输入企业添加员工密码,再输入姓名和电话,然后转发链接,这样就可以看到客户是哪个商家-哪个员工的业绩了.<br><br>
                        超级管理密码是:{$system['adminpass']} (拥有所有权限,可查看所有商家客资) <br>
                        {/if}
                    </span>
                    </div>
                </div>
                {/if}
			</div>
		</div>
		<div class="panel panel-default" role="tabpanel" style="">
			<div class="panel-heading">投屏网址</div>
			<div class="panel-body" style="">
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">URL</label>
                    <div class="col-sm-8 col-xs-12">
                        <input type="text" class="form-control"  readonly="readonly"  value="{$dapingurl}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 col-xs-12 control-label">二维码</label>
                    <div class="col-sm-8 col-xs-12">
                        <img style="width: 299px;" src="{php echo createWebUrl('qr',array('url'=>$dapingurl));}">
                        <span class="help-block">将实时数据投屏,可用于活动现场爆破;有语音播报也可以连到店内音响系统进行播报</span>
                    </div>
                </div>
			</div>
		</div>
	{/if}
	{if empty($system['appid'])}
	<div class="form-group">
        <div class="col-sm-12">
            <label class="btn btn-warning col-xs-12 col-sm-4 col-md-3 col-lg-2">参数设置未提交</label> 
        </div>
    </div>
    {/if}

	</div>
</div>
</div>



	<div class="form-group">
        <div class="col-sm-12">
            <input name="submit" id="btnConfirm" type="submit" value="提交" class="btn btn-primary col-lg-2">
            <input type="hidden" name="__token__" value="{$Request.token}" />
        </div>
    </div>
</form>
</div>
<script type="text/javascript">
	require(['jquery', 'util'], function($, util){
		$('.js-copy1').click(function(){
			util.clip($(".js-copy1"), $(this).attr('data-url'));
		});
		$('.js-copy2').click(function(){
			util.clip($(".js-copy2"), $(this).attr('data-url'));
		});
		$('.js-copy3').click(function(){
			util.clip($(".js-copy3"), $(this).attr('data-url'));
		});
	});
</script>
<script type="text/javascript">
$(function(){
    $('.js-clip').each(function(){
        util.clip(this, $(this).data('url'));
    });
	$('#form1').submit(function(){
		if($.trim($(':text[name="title"]').val()) == '') {
			layer.msg('请填写活动主标题');
			return false;
		}

		if($.trim($(':text[name="comm41"]').val()) > 0) {
			if($.trim($(':text[name="comm4city"]').val()) == '') {
				layer.msg('开启转发红包,红包地区必须填写');
				return false;
			}
			if($.trim($(':text[name="comm4day"]').val()) == '') {
				layer.msg('开启转发红包,分销红包->每天预算多少钱必须填写');
				return false;
			}
			if($.trim($(':text[name="comm4daynum"]').val()) == '') {
				layer.msg('开启转发红包,分销红包->每天多少个必须填写');
				return false;
			}
		}
				// if($.trim($(':text[name="comm11"]').val()) > $.trim($(':text[name="comm12"]').val())) {
		// 	layer.msg('一级开团红包金额设置错误,可设10-20元或10-10元');
		// 	return false;
		// }
		// if($.trim($(':text[name="comm1"]').val()) > $.trim($(':text[name="comm2"]').val())) {
		// 	layer.msg('一级参团红包金额设置错误,可设10-20元或10-10元');
		// 	return false;
		// }
		// if($.trim($(':text[name="comm21"]').val()) > $.trim($(':text[name="comm22"]').val())) {
		// 	layer.msg('二级分销红包金额设置错误,可设10-20元或10-10元');
		// 	return false;
		// }
		// if($.trim($(':text[name="comm31"]').val()) > $.trim($(':text[name="comm32"]').val())) {
		// 	layer.msg('三级分销红包金额设置错误,可设10-20元或10-10元');
		// 	return false;
		// }
		// if($.trim($(':text[name="comm41"]').val()) > $.trim($(':text[name="comm42"]').val())) {
		// 	layer.msg('转发红包金额设置错误,可设1-2元或1-1元');
		// 	return false;
		// }
		// if($.trim($(':text[name="comm51"]').val()) > $.trim($(':text[name="comm52"]').val())) {
		// 	layer.msg('阅读红包金额设置错误,可设1-2元或1-1元');
		// 	return false;
		// }
	});
});


</script>
<script type="text/javascript">

$('.addOptions').click(function(){
	var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="options[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
	$('#options .tpl').append(html);
});


$('.delOptions').click(function(){
	$(this).parent().parent().remove();
});

$('.addaddressoptions').click(function(){
	var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="addressoptions[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
	$('#addressoptions .tpl').append(html);
});


$('.deladdressoptions').click(function(){
	$(this).parent().parent().remove();
});


$('.addlipinOptions').click(function(){
	var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">礼品名称</span>'+
					'<input type="text" name="lipinoptions[]" class="form-control" placeholder="礼品名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
	$('#lipinoptions .tpl').append(html);
});


$('.dellipinOptions').click(function(){
	$(this).parent().parent().remove();
});


$('.addgudingOptions').click(function(){
	var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">礼品名称</span>'+
					'<input type="text" name="gudingoptions[]" class="form-control" placeholder="礼品名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
	$('#gudingoptions .tpl').append(html);
});


$('.delgudingOptions').click(function(){
	$(this).parent().parent().remove();
});

</script>
{/if}


<script type="text/javascript">
    function drop_confirm(msg, url){
        if(confirm(msg)){
            window.location = url;
        }
    }

	var array = new Array(); //数组
	var arraylink = new Array(); //数组
	//js中的二维数组的下标可以使字符串
	{loop $musiclist $row}
		array['{$row['name']}'] = [{$row['listname']}];
		arraylink['{$row['name']}'] = [{$row['listlink']}];
	{/loop}
	//java:array[0] = {"",""};
	function initProvince() {
		for(var i in array) {
		    var provinceObj = document.getElementById("musictype");
		    //创建一个选项
		    /**
		    * 参数一是：展示数据
		    * 参数二是：value属性的值
		    */
		    var option = new Option(i, i); //jquery 
 
		    provinceObj.add(option); //把创建的option添加到下拉列表中
 
		}
	}

	function changemusic() {
		var provinceName = document.getElementById("musictype").value; 
                //得到第一个下拉列表的值
		var city = document.getElementById("musicname");
		//清空第二个下拉列表
		//方法一
		//city.innerHTML = "";
		//方法二
		city.options.length = 1;
		for(var p in array) {
		    if(p == provinceName) {
		    //遍历每个省份的城市
			for(var c in array[p]) {
				//创建一个option
				var option = new Option(array[p][c], arraylink[p][c]);
				var city = document.getElementById("musicname");
				city.add(option);
			}
		}
		}
	}
	function changemusicname() {
		var musicname = document.getElementById("musicname").value; 
        $(".audio-player-media").val(musicname);
	}
	 	initProvince();
</script>
{if $op !='post'}

{/if}
